summaryrefslogtreecommitdiff
path: root/util_func.c
diff options
context:
space:
mode:
authorSeungYeup Kim <sy2004.kim@samsung.com>2013-03-29 13:02:30 +0900
committerSeungYeup Kim <sy2004.kim@samsung.com>2013-03-29 13:02:30 +0900
commit889400d2acf4bffb95c7cd6118974c8aa9e81525 (patch)
tree7e54a17161cf272dc0f0e3f5d1f230619164d059 /util_func.c
parent61f38f29b535fe15fa350ecea21d227e3cbc83ff (diff)
downloadlibslp-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-xutil_func.c4
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)