windows phone sqlite unrecognized token:”‘大”

來源:互聯網
上載者:User
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='大',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 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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.