I have detected and tested this issue on Haiku Beta 4.
print "Trying to import SQLite extension..."
;; make sure that we load a fresh extension
try [system/modules/sqlite: none]
sqlite: import 'sqlite
recycle/torture
with sqlite [
db: open %test.db
;- The folowwing statement works fine
exec db {
BEGIN TRANSACTION;
DROP TABLE IF EXISTS Contacts;
CREATE TABLE Contacts (
email TEXT PRIMARY KEY,
first_name TEXT NOT NULL,
last_name TEXT NOT NULL
);
INSERT INTO "Contacts" VALUES(
'[email protected]',
'Océane', 'Pacôme'
);
COMMIT;
}
;- The following statement does not work:
;- the persisted value for first_name is "O" and
;- the persisted value for last_name is "P"
stmt: prepare db "INSERT INTO Contacts VALUES(?,?,?);"
rec: step/with stmt ["[email protected]" "Océane Jr" "Pacôme"]
exec db "SELECT * FROM Contacts"
close db
shutdown
]
I hope you will be able to fix this soon.