mirror of
https://github.com/Fabio286/antares.git
synced 2025-02-17 04:00:48 +01:00
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))
|
||||
length = field.decimals;
|
||||
|
||||
if (name === 'TIMESTAMP')
|
||||
length = 0;
|
||||
|
||||
if (name === 'CHAR' && field.charsetNr === 63)// if binary
|
||||
name = 'BINARY';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user