summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-23 08:38:03 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-23 08:38:03 (GMT)
commit1e46553615fa6a7057a7c46c249485365b4c147c (patch)
tree893f72d79d2ec9778e43d06e8c3519d4ecbc5d5a /src
parentff9d6470935529cece23378ef9e3aa0f573e5925 (diff)
Fixed the analysis database creations.
Diffstat (limited to 'src')
-rw-r--r--src/analysis/db/items/bookmark.c4
-rw-r--r--src/analysis/db/items/comment.c4
-rw-r--r--src/analysis/db/items/move.c6
-rw-r--r--src/analysis/db/items/switcher.c4
4 files changed, 9 insertions, 9 deletions
diff --git a/src/analysis/db/items/bookmark.c b/src/analysis/db/items/bookmark.c
index 712a5eb..d3010dd 100644
--- a/src/analysis/db/items/bookmark.c
+++ b/src/analysis/db/items/bookmark.c
@@ -755,7 +755,7 @@ static bool g_bookmark_collection_create_db_table(const GBookmarkCollection *col
sql = "CREATE TABLE Bookmarks (" \
SQLITE_DB_ITEM_CREATE ", " \
- "%%s, " \
+ "%s, " \
SQLITE_RLESTR_CREATE("comment") \
");";
@@ -763,7 +763,7 @@ static bool g_bookmark_collection_create_db_table(const GBookmarkCollection *col
asprintf(&request, sql, addr_fields);
- ret = sqlite3_exec(db, sql, NULL, NULL, &msg);
+ ret = sqlite3_exec(db, request, NULL, NULL, &msg);
free(addr_fields);
free(request);
diff --git a/src/analysis/db/items/comment.c b/src/analysis/db/items/comment.c
index 182b2d0..9fc2767 100644
--- a/src/analysis/db/items/comment.c
+++ b/src/analysis/db/items/comment.c
@@ -1595,7 +1595,7 @@ static bool g_comment_collection_create_db_table(const GCommentCollection *colle
sql = "CREATE TABLE Comments (" \
SQLITE_DB_ITEM_CREATE ", " \
- "%%s, " \
+ "%s, " \
"flags INTEGER, " \
SQLITE_RLESTR_CREATE("text") ", " \
"inlined INTEGER, " \
@@ -1606,7 +1606,7 @@ static bool g_comment_collection_create_db_table(const GCommentCollection *colle
asprintf(&request, sql, addr_fields);
- ret = sqlite3_exec(db, sql, NULL, NULL, &msg);
+ ret = sqlite3_exec(db, request, NULL, NULL, &msg);
free(addr_fields);
free(request);
diff --git a/src/analysis/db/items/move.c b/src/analysis/db/items/move.c
index 1b1d5d2..6929ec3 100644
--- a/src/analysis/db/items/move.c
+++ b/src/analysis/db/items/move.c
@@ -735,8 +735,8 @@ static bool g_move_collection_create_db_table(const GMoveCollection *collec, sql
sql = "CREATE TABLE Moves (" \
SQLITE_DB_ITEM_CREATE ", " \
- "%%s, " \
- "%%s" \
+ "%s, " \
+ "%s" \
");";
src_fields = g_binary_cursor_create_db_table("src");
@@ -744,7 +744,7 @@ static bool g_move_collection_create_db_table(const GMoveCollection *collec, sql
asprintf(&request, sql, src_fields, dest_fields);
- ret = sqlite3_exec(db, sql, NULL, NULL, &msg);
+ ret = sqlite3_exec(db, request, NULL, NULL, &msg);
free(src_fields);
free(dest_fields);
diff --git a/src/analysis/db/items/switcher.c b/src/analysis/db/items/switcher.c
index bf5c153..b4f0379 100644
--- a/src/analysis/db/items/switcher.c
+++ b/src/analysis/db/items/switcher.c
@@ -879,7 +879,7 @@ static bool g_switcher_collection_create_db_table(const GSwitcherCollection *col
sql = "CREATE TABLE Switchers (" \
SQLITE_DB_ITEM_CREATE ", " \
- "%%s, " \
+ "%s, " \
"op_index INTEGER, " \
"type INTEGER" \
");";
@@ -888,7 +888,7 @@ static bool g_switcher_collection_create_db_table(const GSwitcherCollection *col
asprintf(&request, sql, addr_fields);
- ret = sqlite3_exec(db, sql, NULL, NULL, &msg);
+ ret = sqlite3_exec(db, request, NULL, NULL, &msg);
free(addr_fields);
free(request);