sqlite3 - Error: no such collation sequence: NOCASE_UTF8 -
i m using existing db file in sqlite3. 1 of column in particular table having clause collate nocase_utf8. m not able insert text in field. giving following error:
sqlite> insert recording (recordingname) values ('abcd'); error: no such collation sequence: nocase_utf8 how should enter text in it?
that's custom collation. sqlite has native support collation named "nocase", not collation named "nocase_utf8". you're getting error, think, because there no such collation defined in sqlite database, nevertheless collation name still stored part of table definition.
i'm not sure how sqlite handles storage of collations defined through c api. i'm pretty sure that's need fix. see docs collation needed callbacks. (you might need 1 call sqlite3_collation_needed().)
Comments
Post a Comment