Skip to content

Commit

Permalink
fix(MySQL): wrong TIMESTAMP fields length
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Feb 27, 2021
1 parent 45351fa commit 201fad9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/libs/clients/MySQLClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 201fad9

Please sign in to comment.