mirror of https://github.com/Fabio286/antares.git
fix(MySQL): wrong TIMESTAMP fields length
This commit is contained in:
parent
45351faeae
commit
201fad9265
|
@ -49,6 +49,9 @@ export class MySQLClient extends AntaresCore {
|
||||||
if (['DATE', 'TIME', 'YEAR', 'DATETIME'].includes(name))
|
if (['DATE', 'TIME', 'YEAR', 'DATETIME'].includes(name))
|
||||||
length = field.decimals;
|
length = field.decimals;
|
||||||
|
|
||||||
|
if (name === 'TIMESTAMP')
|
||||||
|
length = 0;
|
||||||
|
|
||||||
if (name === 'CHAR' && field.charsetNr === 63)// if binary
|
if (name === 'CHAR' && field.charsetNr === 63)// if binary
|
||||||
name = 'BINARY';
|
name = 'BINARY';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue