An issue with Android sqlite3 query (multilingual Mode)

Source: Internet
Author: User

Recently, I have investigated the failure of searching for short MMs in multi-language mode. When the mobile phone system language is set to English (Spanish, Turkey etc), the search is successful, but the language is Hindi and Arabic, an error occurs:

E/XXX: Got exception: Android. database. SQLite. sqliteexception:
No such column: Unsupported partition usage:, while compiling: Select PDU. _ id, thread_id, ADDR. address, part. text as body, PDU. date from PDU, part, ADDR where (part. mid = PDU. _ id) and (ADDR. msg_id = PDU. _ id) and
(ADDR. type = partition) and (Part. Ct = 'text/plain ') group by thread_id order by thread_id ASC, date DESC

The query statement is as follows:

String mmsquery = string. Format (
"Select % s from PDU, part, ADDR, words where (part. Mid = PDU. _ id) and" +
"(ADDR. msg_id = PDU. _ id) and" +
"(ADDR. type = % d) and" +
"(Part. Ct = 'text/plain '))",
Mmsprojection,
Pduheaders.)

In Arabic, the upper limit represents the number "151",
ADDR. Type obtains the integer value. The decimal value of pduheaders. To is 151.

It seems that the value of pduheaders. To is expressed in the local language. Arabic numerals are used for Chinese, English, and Spanish, so there is no problem.

Has anyone ever encountered this problem? How can this problem be solved?

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.