Open flexchar opened 5 months ago
For the context, I build Sqlite using Drizzle/Turso in TypeScript. I have one column that is blob. I am now trying to query from Python and got this error. I switched to the native sqlite3
library and it worked fine (I am using local db.sqlite
file while prototyping).
I stumbled upon this as well, in my case I believe was an attribute None
which I replaced to an empty string meanwhile.
My solution (check here my migrate script from local to remote -- later I found out there's a cli for this but nonetheless):
insert into table x(col1, col2, col3) values('x', None, 1)
->
insert into table x(col1, col3) values('x', 1)
seems to work but it'd be nice if it handles python Nones like sqlite3 does.
I think this is pretty self explanatory. :)