You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a parameterized query to insert a numeric value into a column of type interval throws "Unexpected end of input" when it should either succeed or throw an actually useful error.
Error: Unexpected end of input
💥 This is a nasty error, which was unexpected by pg-mem. Also known "a bug" 😁 Please file an issue !
*️⃣ Failed SQL statement:
INSERT INTO test (value) VALUES ('1')
To Reproduce
import{newDb}from"pg-mem";constdb=newDb();constpg=db.adapters.createPg();constpool=newpg.Pool();console.log(awaitpool.query(` CREATE TABLE test ( value interval NOT NULL ); INSERT INTO test (value) VALUES ('1'); SELECT * FROM test;`,[1]));
pg-mem version
pg-mem@^3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/pg-mem/-/pg-mem-3.0.3.tgz#0c8862f9bd096a3dcd2addf97e96675fd687a7ad"
integrity sha512-Bwg8T46AEMjAmqFT5KIuR2ukRE4GzkVSic7U8CAXqlzFr631N9fTGo4JqNgBHrRCT1qR4Nt2bjZA1AL9JhP4uw==
The text was updated successfully, but these errors were encountered:
Describe the bug
Using a parameterized query to insert a numeric value into a column of type
interval
throws "Unexpected end of input" when it should either succeed or throw an actually useful error.To Reproduce
pg-mem version
The text was updated successfully, but these errors were encountered: