Open
Description
Yet again, I'm not sure if I'm doing something wrong or a byte array as return value from a function is not supported.
Reproduction:
- Find
ColumnBlob
inlib.ua
, remove the assertion, uncomment the "Call" function line. - Create a file with this code:
# Experimental!
Sqlite ~ "lib"
Sqlite~Open "test.db"
$ CREATE TABLE IF NOT EXISTS test (id INTEGER PRIMARY KEY, blob BLOB);
Sqlite~Exec ⊙.
$ INSERT INTO test (blob) VALUES (X'010203');
Sqlite~Exec ⊙.
$ SELECT blob FROM test;
Sqlite~Prepare ⊙.
◌Sqlite~StepRow .
◌?Sqlite~ColumnBlob 1
Sqlite~Close
- Run the code. A file named "test.db" will be created. You can inspect the database to confirm that bytes
1, 2, 3
were added. - The code will crash with an FFI error.
Metadata
Metadata
Assignees
Labels
No labels