From a76ce68e9c655fb78a02f98fa5fac8a9691d7110 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sat, 18 Jun 2022 14:13:27 +1000 Subject: [PATCH] fix(db): supportBigNumbers BIGINT columns will lose precision at a certain length. This connection flag will typecast to a string in those situations. Resolves #121. --- src/database/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/database/index.ts b/src/database/index.ts index 14cafa5..9f29af3 100644 --- a/src/database/index.ts +++ b/src/database/index.ts @@ -55,6 +55,7 @@ setTimeout(() => { pool = createPool({ connectTimeout: 60000, trace: false, + supportBigNumbers: true, ...connectionOptions, typeCast, });