The unified diff between revisions [84d2685c..] and [a3ea8099..] is displayed below. It can also be downloaded as a raw diff.
#
#
# patch "sqlite-backend.c"
# from [eba591f8c420338f2011bc2039376a1fba141423]
# to [f025f9a3c4d26235cffa218e50380824fd8e2b0c]
#
============================================================
--- sqlite-backend.c eba591f8c420338f2011bc2039376a1fba141423
+++ sqlite-backend.c f025f9a3c4d26235cffa218e50380824fd8e2b0c
@@ -528,25 +528,25 @@ insert_or_update_value (SqliteSource *ss
#define BASIC_LIST_INSERT "INSERT INTO lists (key_id, list_idx, value) "
-static char *
+static inline char *
list_sql_string (long long int key, long long int idx, const void *v)
{
return sqlite3_mprintf (BASIC_LIST_INSERT "VALUES (%lld, %lld, '%q')", key, idx, *(const char *)v);
}
-static char *
+static inline char *
list_sql_int (long long int key, long long int idx, const void *v)
{
return sqlite3_mprintf (BASIC_LIST_INSERT "VALUES (%lld, %lld, %d)", key, idx, *(const int *)v);
}
-static char *
+static inline char *
list_sql_float (long long int key, long long int idx, const void *v)
{
return sqlite3_mprintf (BASIC_LIST_INSERT "VALUES (%lld, %lld, %f)", key, idx, *(const double *)v);
}
-static char *
+static inline char *
list_sql_bool (long long int key, long long int idx, const void *v)
{
return sqlite3_mprintf (BASIC_LIST_INSERT "VALUES (%lld, %lld, %d)", key, idx, *(const gboolean *)v);
@@ -584,7 +584,6 @@ insert_list_for_key (SqliteSource *ss, c
list = gconf_value_get_list (value);
while (list) {
query = list_sql_func (key, idx, list->data);
- printf ("list thing is : %s\n", query);
if (sqlite3_exec (ss->db, query, NULL, NULL, &err_mesg) != SQLITE_OK) {
gconf_log (GCL_ERR, "(insert_list_for_key) SQL error: %s", err_mesg);