Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLite3 Database - No such collation sequence error

I am getting no such collation sequence: en_US error when I try to do a select count(*) from OR insert a record into a particular table in the database.

I am no database expert but I tried to google the error and what I understand is that the table is created with COLLATION SEQUENCE function set to en_US which the SQLite is not familiar with.

Is there any solution to this error (without dropping the table and creating a new one).

like image 214
user1065969 Avatar asked Nov 14 '22 10:11

user1065969


1 Answers

Thank you CatCall. I tried a .schema tablename and I saw that the collation sequence was set on 2 of the indexes. I dropped them and recreated without the collation sequence and the issue was fixed.

like image 174
user1065969 Avatar answered Dec 17 '22 22:12

user1065969