summaryrefslogtreecommitdiff
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
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
-rwxr-xr-x[-rw-r--r--]packaging/libslp-db-util.spec2
-rwxr-xr-xutil_func.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/packaging/libslp-db-util.spec b/packaging/libslp-db-util.spec
index ae1a9dd..c1f4333 100644..100755
--- a/packaging/libslp-db-util.spec
+++ b/packaging/libslp-db-util.spec
@@ -1,7 +1,7 @@
Name: libslp-db-util
Summary: DB Utility
Version: 0.1.1
-Release: 4
+Release: 5
Group: System/Libraries
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
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)