-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sqlite BLOB column not supported. #60
Comments
A log with the complete error: |
I think it's a problem with the unique concept of manifest typing used in SQLite3, wherein I have the following quite strange result: SQLITE> (let ((statement (sqlite:prepare-statement *sqlite-db*
"select file_data from files limit 1")))
(sqlite:step-statement statement)
(prog1
(sqlite-ffi:sqlite3-column-type (sqlite::handle statement) 0)
(sqlite:finalize-statement statement)))
:TEXT Note that it's not the driver's fault:
I will see later what can be done here, given that SQLite happily returns That said it might be that just storing the string characters as their ascii bytes into the bytea is all we need to do here. |
Aha. After some tests, your data is base64 encoded, so returned as text for that reason. |
I tried rebuilding pgloader, with make pgloader: but it seems to need an extra DEP: |
Sorry about that, went too fast again. Should be ok now (did compile a binary and used it against the new regression test here). |
It works now. But when converting a very big DB (sqlite with 400Mb on Blob in a table) I run into memory shortage issues. Is there a smart way around this? (it's not a big issue for me, I can clean up the table before doing the convert) |
You can try the batch settings (see Batch behaviour options in the Reference documentation), or even try compiling with CCL (at http://ccl.clozure.com/) if you feel that way. |
When trying to convert a sqlite DB with some BLOB columns I run into a fatal error:
ERROR Database error 42704: type "blob" does not exist.
It now fails with:
I've added a SQLite file with 'files' table including a 'file_data' BLOB field. You'll find two records, one PDF and one JPEG file.
https://dl.dropboxusercontent.com/u/20756661/storage.sqlite.tgz
The text was updated successfully, but these errors were encountered: