diff options
author | SeungYeup Kim <sy2004.kim@samsung.com> | 2013-03-29 13:02:30 +0900 |
---|---|---|
committer | SeungYeup Kim <sy2004.kim@samsung.com> | 2013-03-29 13:02:30 +0900 |
commit | 889400d2acf4bffb95c7cd6118974c8aa9e81525 (patch) | |
tree | 7e54a17161cf272dc0f0e3f5d1f230619164d059 /util_func.c | |
parent | 61f38f29b535fe15fa350ecea21d227e3cbc83ff (diff) | |
download | libslp-db-util-889400d2acf4bffb95c7cd6118974c8aa9e81525.tar.gz libslp-db-util-889400d2acf4bffb95c7cd6118974c8aa9e81525.tar.bz2 libslp-db-util-889400d2acf4bffb95c7cd6118974c8aa9e81525.zip |
Case insensitive in collation needed callback
Diffstat (limited to 'util_func.c')
-rwxr-xr-x | util_func.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util_func.c b/util_func.c index 393d50d..a33e814 100755 --- a/util_func.c +++ b/util_func.c @@ -40,9 +40,11 @@ static int __db_util_busyhandler(void *pData, int count) void __db_util_collation_cb(void* pArg, sqlite3* pDB, int eTextRep, const char* szName) { - if (eTextRep == SQLITE_UTF8 && !strcmp(szName, "localized")) + if (eTextRep == SQLITE_UTF8 && !sqlite3_stricmp(szName, "localized")) db_util_create_collation(pDB, DB_UTIL_COL_LS_AS_CI, DB_UTIL_COL_UTF8, "localized"); + else + DB_UTIL_TRACE_WARNING("No matching collator for %s", szName); } static int __db_util_open(sqlite3 *pDB) |