fix(PostgreSQL): bigint fetched as string instead of number, closes #134

This commit is contained in:
Fabio Di Stasio 2021-11-05 11:41:12 +01:00
parent 534659f9ae
commit 39b9a59143
1 changed files with 1 additions and 0 deletions

View File

@ -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