windows phone sqlite unrecognized token:"'大"

What steps will reproduce the problem?
1.I'm using the latest version of csharp-sqlite
2.I want to select a row from db ,just like SELECT * FROM test where name='大',but i can insert '大' to database..
3.大 is a Chinese character.

What is the expected output? What do you see instead?
It expected that will be shown a row there the name='大',but it says 
unrecognized token:"'大"

What version of the product are you using? On what operating system?
I'm using csharp-sqlite_3_7_7_1_71.zip ,win7 64bit to develop, and develop for windows phone 7.1 sdk

Please provide any additional information below.

thank you very much

Comment 1 by [email protected], Apr 8, 2012
It is because tokenize_c.cs casts a unicode char to byte where the higher byte is lost and the some chinese characters are processed as ascii then caused the parse error.

I made some small changes where at lease the select of chinese characters works fine (enough for me), hope this helps to fix this issue and other potential similar problems.
unicode-tokenize.diff
3.9 KB   View   Download
Comment 2 by [email protected], Apr 9, 2012
@[email protected]

I must offer my heartfelt thanks to you.
The problem was solved the brilliantly.
Thank you !

Comment 3 by project member [email protected], Apr 9, 2012

Thank you, patch added into current release

Status: Accepted
Owner: [email protected]
Labels: Milestone-3.7.11

你可能感兴趣的:(windows,phone)