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
On "select 'other' as \"x [b1b1]\"", the "other" is not answered as base64 #265
Comments
Could be on the server @alanjds -- some of this conversion logic needs more work, to ensure it's doing the right thing. |
Basically, it might have something to do with this area: #244, but I am not sure yet. I'm still researching what is the right thing to do here. |
Nice. For me the most important is behaviour consistency. Right now I cannot have a way to detect if I should or should not decode the answer based on the type. |
In order to handle binary data, there will have to be a way for the client to specify typed arguments for the SQLiteConn.Exec method. Since json can only contain text data, the client will have to encode binary data as base64, and rqlited will have to decode the base64 to When returning binary data from select statement, rqlited will have to encode the binary data as base64, and the client will have to use the types of the columns as a hint that the values need to be decoded from base64 to binary data. |
@zmedico -- I'm not fully following this. Can you give some examples of SQL statements that are failing on rqlite? Is this something that can be demonstrated purely with SQL? |
In other words, is there is a sequence of SQL statements one could execute directly at the |
Actually, it might be possible to use BLOB literals containing hexadecimal data to insert binary data, which is how it can be done at the sqlite3 prompt. I'll test that, and see how rqlite returns the binary data in query results. |
BLOB literals containing hexadecimal data do work with rqlite, and query results return the binary data with base64 encoding. |
You mean... |
Unfortunately, I doubt that BLOB literals are helpful for this
|
After working on a types extension branch on pyrqlite, I noticed that native types are answered as native string or number, but non-native and blob ones as base64. Ok.
But when I do provide a literal and a column name[type] with non-native type then I got 2 issues, as shown on this pyrqlite ticket:
Is this a misbehaving of the server or of the client? (in other words, where should patches land?)
The text was updated successfully, but these errors were encountered: