Caused by: java.lang.RuntimeException: java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such collation sequence: LOCALIZED)
at org.robolectric.shadows.ShadowSQLiteProgram.init(ShadowSQLiteProgram.java:29)
at org.robolectric.shadows.ShadowSQLiteStatement.init(ShadowSQLiteStatement.java:19)at org.robolectric.shadows.ShadowSQLiteDatabase.compileStatement(ShadowSQLiteDatabase.java:482)
--
You received this message because you are subscribed to the Google Groups "Robolectric" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robolectric...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
@Implements(value = SQLiteDatabase.class, inheritImplementationMethods = true)public class MyShadowSQLiteDatabase extends ShadowSQLiteDatabase{@Implementationpublic Cursor rawQueryWithFactory(SQLiteDatabase.CursorFactory cursorFactory, String sql, String[] selectionArgs,String editTable){String sqlWithCollateLocalizedRemoved = sql.replaceAll("COLLATE LOCALIZED ", "");return super.rawQueryWithFactory(cursorFactory, sqlWithCollateLocalizedRemoved, selectionArgs, editTable);}}
Caused by: com.almworks.sqlite4java.SQLiteException: [1] DB[1] prepare() SELECT ... ORDER BY T.'NAME' COLLATE LOCALIZED ASC [no such collation sequence: LOCALIZED]
Could you please provide with a description of the error you see with 2.3 (strace, message)? And why the remove of ShadowSQLiteDatabase is a blocker for you?
For more options, visit https://groups.google.com/d/optout.
Localized Collation - ORDER BY
In addition to SQLite's default BINARY collator, Android supplies two more, LOCALIZED, which changes with the system's current locale, and UNICODE, which is the Unicode Collation Algorithm and not tailored to the current locale.