Windows Phone SQLite unrecognized token: "'Big"

Source: Internet
Author: User
Tags parse error
What steps will reproduce the problem?1. i'm using the latest version of csharp-sqlite2. I want to select a row from DB, just like select * from test where name = 'day ', but I can insert 'day' to database .. 3. large 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 = 'day', but it says unrecognized token: "'Big"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 SDKPlease provide any additional information below.Thank you very much
Comment 1 by bright2k@gmail.com , 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

sinfias...@163.com,
APR 9, 2012

 @ bright2k@gmail.comI must offer my heartfelt thanks to you. the problem was solved the brilliantly. thank you! 

comment 3 by project member market.n...@gmail.com , APR 9, 2012

 thank you, patch added into current release 

Status: accepted
owner: noah.hart@gmail.com
labels: milestone-3.7.11

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.