When I use the sqlite3_column_blob function it converts my date which is in a LONG format into a string format. It basically converts my time in the database to a string. I need to return data as it is without any conversions how can I do this?
I also do not want to use the sqlite3_column_int function ect because I am writing a database wrapper which uses a union
sqlite3 is the problem the sqlite3_column_blob is converting all data into characters. I retrieved the time from a database which was set as a LONG and sqlite3 converted it to the character equivalent
1 2
0x1efedd0: 31 34 30 34 33 35 39 37|38 39 00 00 05 00 00 00 1404359789......
0x1efede0: 0d f0 ad ba 0d f0 ad ba|0d f0 ad ba 0d f0 ad ba .ðº.ðº.ðº.ðº
Does anyone know a way to stop sqlite3 from doing these conversions. All I want to do is return a pointer to the physical bytes. I don't want these conversions that sqlite3 is doing.
I am just asking if anyone knows how to get it. I could call other functions to get the data too mate. All I want to know is if their is a was to return a pointer to the physical data. I don't want any automatic int to character conversions and stuff like that.