summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-03-05 15:20:56 (GMT)
committerSung-jae Park <nicesj.park@samsung.com>2013-03-05 15:20:56 (GMT)
commit1ea532f5cf3f179d57866f875e065ee4c7c0be5c (patch)
tree6c060fafe21cacbf1d4c6a2854a42ee0514d583c
parent6219e95e44551b18781c96f30ea7c60d1787f454 (diff)
downloaddata-provider-master-1ea532f5cf3f179d57866f875e065ee4c7c0be5c.zip
data-provider-master-1ea532f5cf3f179d57866f875e065ee4c7c0be5c.tar.gz
data-provider-master-1ea532f5cf3f179d57866f875e065ee4c7c0be5c.tar.bz2
Replace the NULL with SQLITE_TRANSIENT.
NULL is defined as SQLITE_STATIC. But I intend to use the SQLITE_TRANSIENT, so I set it correctly. Change-Id: I1d94a8ebdfbd9bb9e773f036b81cc64ac95fa5b5
-rw-r--r--packaging/data-provider-master.spec2
-rw-r--r--pkgmgr_livebox/src/service_register.c88
-rw-r--r--src/io.c18
3 files changed, 54 insertions, 54 deletions
diff --git a/packaging/data-provider-master.spec b/packaging/data-provider-master.spec
index c7e104b..12727be 100644
--- a/packaging/data-provider-master.spec
+++ b/packaging/data-provider-master.spec
@@ -1,6 +1,6 @@
Name: data-provider-master
Summary: Master service provider for liveboxes.
-Version: 0.17.1
+Version: 0.17.2
Release: 1
Group: framework/livebox
License: Flora License
diff --git a/pkgmgr_livebox/src/service_register.c b/pkgmgr_livebox/src/service_register.c
index 21691f0..653791a 100644
--- a/pkgmgr_livebox/src/service_register.c
+++ b/pkgmgr_livebox/src/service_register.c
@@ -305,14 +305,14 @@ static inline int db_insert_pkgmap(const char *appid, const char *pkgid, int pri
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, appid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, appid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 2, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 2, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -352,7 +352,7 @@ static inline int db_remove_pkgmap(const char *pkgid)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -408,7 +408,7 @@ static inline int db_remove_provider(const char *pkgid)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -476,7 +476,7 @@ static inline int db_insert_provider(struct livebox *livebox)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, (char *)livebox->pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, (char *)livebox->pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -491,7 +491,7 @@ static inline int db_insert_provider(struct livebox *livebox)
goto out;
}
- ret = sqlite3_bind_text(stmt, 3, abi, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 3, abi, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -511,14 +511,14 @@ static inline int db_insert_provider(struct livebox *livebox)
goto out;
}
- ret = sqlite3_bind_text(stmt, 6, box_src, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 6, box_src, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 7, box_group, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 7, box_group, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -532,21 +532,21 @@ static inline int db_insert_provider(struct livebox *livebox)
goto out;
}
- ret = sqlite3_bind_text(stmt, 9, pd_src, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 9, pd_src, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 10, pd_group, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 10, pd_group, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 11, libexec, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 11, libexec, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -560,14 +560,14 @@ static inline int db_insert_provider(struct livebox *livebox)
goto out;
}
- ret = sqlite3_bind_text(stmt, 13, period, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 13, period, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 14, script, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 14, script, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -626,42 +626,42 @@ static inline int db_insert_client(struct livebox *livebox)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, (char *)livebox->pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, (char *)livebox->pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 2, (char *)livebox->icon, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 2, (char *)livebox->icon, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 3, (char *)livebox->name, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 3, (char *)livebox->name, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 4, (char *)livebox->auto_launch, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 4, (char *)livebox->auto_launch, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 5, (char *)livebox->pd_size, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 5, (char *)livebox->pd_size, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 6, livebox->content ? (char *)livebox->content : "default", -1, NULL);
+ ret = sqlite3_bind_text(stmt, 6, livebox->content ? (char *)livebox->content : "default", -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -675,7 +675,7 @@ static inline int db_insert_client(struct livebox *livebox)
goto out;
}
- ret = sqlite3_bind_text(stmt, 8, livebox->setup ? (char *)livebox->setup : "", -1, NULL);
+ ret = sqlite3_bind_text(stmt, 8, livebox->setup ? (char *)livebox->setup : "", -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -722,7 +722,7 @@ static inline int db_remove_client(const char *pkgid)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -774,28 +774,28 @@ static inline int db_insert_i18n(const char *pkgid, const char *lang, const char
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 2, lang, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 2, lang, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 3, name, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 3, name, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 4, icon, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 4, icon, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -828,7 +828,7 @@ static inline int db_remove_i18n(const char *pkgid)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -881,21 +881,21 @@ static inline int db_insert_group(const char *pkgid, const char *cluster, const
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, cluster, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, cluster, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 2, category, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 2, category, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 3, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 3, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -933,12 +933,12 @@ static inline int db_get_group_id(const char *cluster, const char *category)
}
ret = -EIO;
- if (sqlite3_bind_text(stmt, 1, cluster, -1, NULL) != SQLITE_OK) {
+ if (sqlite3_bind_text(stmt, 1, cluster, -1, SQLITE_TRANSIENT) != SQLITE_OK) {
ErrPrint("Failed to bind a cluster(%s) - %s\n", cluster, sqlite3_errmsg(s_info.handle));
goto out;
}
- if (sqlite3_bind_text(stmt, 2, category, -1, NULL) != SQLITE_OK) {
+ if (sqlite3_bind_text(stmt, 2, category, -1, SQLITE_TRANSIENT) != SQLITE_OK) {
ErrPrint("Failed to bind a category(%s) - %s\n", category, sqlite3_errmsg(s_info.handle));
goto out;
}
@@ -970,7 +970,7 @@ static inline int db_remove_group(const char *pkgid)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -1030,14 +1030,14 @@ static inline int db_get_option_id(int id, const char *pkgid, const char *ctx_it
goto out;
}
- ret = sqlite3_bind_text(stmt, 2, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 2, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 3, ctx_item, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 3, ctx_item, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -1082,14 +1082,14 @@ static inline int db_insert_groupmap(int id, const char *pkgid, const char *ctx_
goto out;
}
- ret = sqlite3_bind_text(stmt, 2, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 2, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 3, ctx_item, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 3, ctx_item, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -1122,7 +1122,7 @@ static inline int db_remove_groupmap(const char *pkgid)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -1177,7 +1177,7 @@ static inline int db_insert_option(const char *pkgid, int option_id, const char
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -1191,14 +1191,14 @@ static inline int db_insert_option(const char *pkgid, int option_id, const char
goto out;
}
- ret = sqlite3_bind_text(stmt, 3, key, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 3, key, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
goto out;
}
- ret = sqlite3_bind_text(stmt, 4, value, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 4, value, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -1230,7 +1230,7 @@ static inline int db_remove_option(const char *pkgid)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -1285,7 +1285,7 @@ static inline int db_insert_box_size(const char *pkgid, int size_type, const cha
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -1299,7 +1299,7 @@ static inline int db_insert_box_size(const char *pkgid, int size_type, const cha
goto out;
}
- ret = sqlite3_bind_text(stmt, 3, preview ? preview : "", -1, NULL);
+ ret = sqlite3_bind_text(stmt, 3, preview ? preview : "", -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -1332,7 +1332,7 @@ static inline int db_remove_box_size(const char *pkgid)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgid, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgid, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
DbgPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
diff --git a/src/io.c b/src/io.c
index f078832..061cc2d 100644
--- a/src/io.c
+++ b/src/io.c
@@ -226,7 +226,7 @@ static inline int build_client_info(struct pkg_info *info)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, package_name(info), -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, package_name(info), -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
ErrPrint("Failed to bind a pkgname %s\n", package_name(info));
sqlite3_finalize(stmt);
@@ -273,13 +273,13 @@ static inline int build_provider_info(struct pkg_info *info)
return -EIO;
}
- if (sqlite3_bind_text(stmt, 1, package_name(info), -1, NULL) != SQLITE_OK) {
+ if (sqlite3_bind_text(stmt, 1, package_name(info), -1, SQLITE_TRANSIENT) != SQLITE_OK) {
ErrPrint("Failed to bind a pkgname(%s) - %s\n", package_name(info), sqlite3_errmsg(s_info.handle));
sqlite3_finalize(stmt);
return -EIO;
}
- if (sqlite3_bind_text(stmt, 2, package_name(info), -1, NULL) != SQLITE_OK) {
+ if (sqlite3_bind_text(stmt, 2, package_name(info), -1, SQLITE_TRANSIENT) != SQLITE_OK) {
ErrPrint("Failed to bind a pkgname(%s) - %s\n", package_name(info), sqlite3_errmsg(s_info.handle));
sqlite3_finalize(stmt);
return -EIO;
@@ -366,7 +366,7 @@ static inline int build_box_size_info(struct pkg_info *info)
return -EIO;
}
- if (sqlite3_bind_text(stmt, 1, package_name(info), -1, NULL) != SQLITE_OK) {
+ if (sqlite3_bind_text(stmt, 1, package_name(info), -1, SQLITE_TRANSIENT) != SQLITE_OK) {
ErrPrint("Failed to bind a pkgname(%s) - %s\n", package_name(info), sqlite3_errmsg(s_info.handle));
sqlite3_finalize(stmt);
return -EIO;
@@ -497,7 +497,7 @@ static inline int build_group_info(struct pkg_info *info)
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, package_name(info), -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, package_name(info), -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
ErrPrint("Failed to bind a package name(%s)\n", package_name(info));
sqlite3_finalize(stmt);
@@ -583,7 +583,7 @@ HAPI int io_is_exists(const char *pkgname) /* Manifest Package Name */
return -EIO;
}
- ret = sqlite3_bind_text(stmt, 1, pkgname, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgname, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
ErrPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EIO;
@@ -623,13 +623,13 @@ HAPI char *io_livebox_pkgname(const char *pkgname)
return NULL;
}
- ret = sqlite3_bind_text(stmt, 1, pkgname, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgname, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
ErrPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
goto out;
}
- ret = sqlite3_bind_text(stmt, 2, pkgname, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 2, pkgname, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
ErrPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
goto out;
@@ -731,7 +731,7 @@ HAPI int io_update_livebox_package(const char *pkgname, int (*cb)(const char *lb
return -EFAULT;
}
- ret = sqlite3_bind_text(stmt, 1, pkgname, -1, NULL);
+ ret = sqlite3_bind_text(stmt, 1, pkgname, -1, SQLITE_TRANSIENT);
if (ret != SQLITE_OK) {
ErrPrint("Error: %s\n", sqlite3_errmsg(s_info.handle));
ret = -EFAULT;