mirror of https://github.com/Fabio286/antares.git
fix(PostgreSQL): bigint fetched as string instead of number, closes #134
This commit is contained in:
parent
534659f9ae
commit
39b9a59143
|
@ -9,6 +9,7 @@ function pgToString (value) {
|
|||
return value.toString();
|
||||
}
|
||||
|
||||
types.setTypeParser(20, a => parseInt(a));// bigint string to number
|
||||
types.setTypeParser(1082, pgToString); // date
|
||||
types.setTypeParser(1083, pgToString); // time
|
||||
types.setTypeParser(1114, pgToString); // timestamp
|
||||
|
|
Loading…
Reference in New Issue