Skip to content

Commit

Permalink
fix(PostgreSQL): bigint fetched as string instead of number, closes #134
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Nov 5, 2021
1 parent 534659f commit 39b9a59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/libs/clients/PostgreSQLClient.js
Expand Up @@ -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
Expand Down

0 comments on commit 39b9a59

Please sign in to comment.