fix sq compiler warning for uninit parameter, query is not primary key due to overrid...
authorChristian Grothoff <christian@grothoff.org>
Fri, 30 Mar 2018 14:07:10 +0000 (16:07 +0200)
committerChristian Grothoff <christian@grothoff.org>
Fri, 30 Mar 2018 14:07:10 +0000 (16:07 +0200)
src/include/gnunet_sq_lib.h
src/namecache/plugin_namecache_sqlite.c

index c196d7767a24ed2fefcde87760006fc157721476..f3adbc4c2fb005bf3ec2ea8c1d23d82bec4e1b9b 100644 (file)
@@ -294,7 +294,7 @@ struct GNUNET_SQ_ResultSpec
  *
  * @return array last entry for the result specification to use
  */
-#define GNUNET_SQ_result_spec_end { NULL, NULL, NULL, NULL, 0, NULL }
+#define GNUNET_SQ_result_spec_end { NULL, NULL, NULL, NULL, 0, NULL, 0 }
 
 
 /**
index 669729f378fe2ef11e7a8f5d5695d621ae596f03..37d6d3b62ba3fc5fe09738070541819a2d0312fe 100644 (file)
@@ -241,7 +241,7 @@ database_setup (struct Plugin *plugin)
       (sqlite3_exec
        (plugin->dbh,
         "CREATE TABLE ns096blocks ("
-        " query BLOB NOT NULL PRIMARY KEY,"
+        " query BLOB NOT NULL,"
         " block BLOB NOT NULL,"
         " expiration_time INT8 NOT NULL"
        ")",