Skip to content
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

select issue of Chinese character '大' #151

Open
GoogleCodeExporter opened this issue Mar 11, 2016 · 3 comments
Open

select issue of Chinese character '大' #151

GoogleCodeExporter opened this issue Mar 11, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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

Original issue reported on code.google.com by sinfias...@163.com on 6 Apr 2012 at 2:18

@GoogleCodeExporter
Copy link
Author

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.

Original comment by brigh...@gmail.com on 9 Apr 2012 at 1:33

Attachments:

@GoogleCodeExporter
Copy link
Author

@bright2k@gmail.com

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

Original comment by sinfias...@163.com on 10 Apr 2012 at 1:29

@GoogleCodeExporter
Copy link
Author

Thank you, patch added into current release

Original comment by market.n...@gmail.com on 10 Apr 2012 at 1:40

  • Changed state: Accepted
  • Added labels: Milestone-3.7.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant