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
Basically create a UDF that returns the exact value. The results will all turn into \x00...
awaitc.createScalarFunction('base64',newUtf8(),(a)=>{console.log(a)// Markreturna});awaitc.query(`CREATE TABLE people(id INTEGER, name VARCHAR);`);awaitc.query(`INSERT INTO people VALUES (6, 'Mark');`);letr=awaitc.query(`SELECT id, name, base64(name)::VARCHAR as base64 FROM people;`);letarray=r.toArray().map((row)=>row.toJSON());console.log(array)// {id: 6, name: 'Mark', base64: '\x00\x00\x00\x00'}
Browser/Environment:
Chrome 124.0.6367.79
Device:
macOS
DuckDB-Wasm Version:
1.28.0
DuckDB-Wasm Deployment:
browser
Full Name:
seeya
Affiliation:
None
The text was updated successfully, but these errors were encountered:
What happens?
The returned results of a UDF is always "\x00\x00..." when the returned type is a String.
To Reproduce
Created a sandbox here:
https://codesandbox.io/p/sandbox/small-feather-n3p688?file=%2Fsrc%2FDuckDb.js
Basically create a UDF that returns the exact value. The results will all turn into \x00...
Browser/Environment:
Chrome 124.0.6367.79
Device:
macOS
DuckDB-Wasm Version:
1.28.0
DuckDB-Wasm Deployment:
browser
Full Name:
seeya
Affiliation:
None
The text was updated successfully, but these errors were encountered: