I have table that holds values of different types in utf16.
I also know value type for the current row.
How should I cast value to compare it with integer?

This test shows 1 instead of 17 that I expected.

sqlite> create table t (value text, field_type int);
sqlite> insert into t values (X'31003700', 1);
sqlite> select value from t;
1
sqlite>


I know that sqlite3.exe does not support Unicode but problem persist in
api call also.

If I use this query:
select count(1) as num from t where type = 1 and value = ?
and bind MBC buffer with sqlite3_bind_blob it works fine for value =
3100 (i.e. 1) but return no data when value consists of more than one
digit.

-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to