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
sql.begin(async(sql)=>{awaitsql`create temp table t(boolcol boolean)`;constx={boolcol: "t"};awaitsql`insert into t ${sql(x)}`;awaitsql`update t set ${sql(x)}`;console.log(awaitsql`select boolcol from t`);});
Result(1) [ { boolcol: false } ]
The text was updated successfully, but these errors were encountered:
The parse function is what is used when values is retrieved from the db, so you should look at the serialize function for what is sent serialize: x => x === true ? 't' : 'f'
Based on the postgres docs and the parse function I could find, I would expect this to result in a true. Am I missing something?
Result(1) [ { boolcol: false } ]
The text was updated successfully, but these errors were encountered: