summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)