Closed nsf closed 1 year ago
Seems that tests are only failing on this PR, not on main branch although the failure looks unrelated. I will look into this
Error only occurs when this newly added test case uses a separate database. Perhaps it is related to some thread safety issues because the only tests that are failing are related to async/non-blocking functionality. Let's use single database in tests for now, I will deprecate/remove the async methods in SQLBlob in a follow up since the functionality doesn't work safely because of how the async calls are made.
Updated the test.
Empty string is encoded as empty buffer in Deno. And as of right now (Deno 1.29.1), ffi layer converts it to NULL pointer, which causes sqlite3_bind_text to bind the NULL value instead of an empty string. As a workaround let's use a special non-empty buffer, but specify zero length.