diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-12-07 22:33:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-12-07 22:33:56 +0000 |
commit | 4fb234a3b5910291f1d22bcacb02106ec3adcef3 (patch) | |
tree | c8b76fb3fbe8ca0258e820ed314bb94393e85084 /src/datastore | |
parent | 6304323162321afab21eadf5a0a9433dbeff4e50 (diff) | |
download | gnunet-4fb234a3b5910291f1d22bcacb02106ec3adcef3.tar.gz gnunet-4fb234a3b5910291f1d22bcacb02106ec3adcef3.zip |
-avoid mysql warning (was harmless, but still not nice)
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/plugin_datastore_mysql.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datastore/plugin_datastore_mysql.c b/src/datastore/plugin_datastore_mysql.c index b92877d98..ad70e73d4 100644 --- a/src/datastore/plugin_datastore_mysql.c +++ b/src/datastore/plugin_datastore_mysql.c | |||
@@ -176,7 +176,7 @@ struct Plugin | |||
176 | #define UPDATE_ENTRY "UPDATE gn090 SET prio=prio+?,expire=IF(expire>=?,expire,?) WHERE uid=?" | 176 | #define UPDATE_ENTRY "UPDATE gn090 SET prio=prio+?,expire=IF(expire>=?,expire,?) WHERE uid=?" |
177 | struct GNUNET_MYSQL_StatementHandle *update_entry; | 177 | struct GNUNET_MYSQL_StatementHandle *update_entry; |
178 | 178 | ||
179 | #define DEC_REPL "UPDATE gn090 SET repl=GREATEST (0, repl - 1) WHERE uid=?" | 179 | #define DEC_REPL "UPDATE gn090 SET repl=GREATEST (1, repl) - 1 WHERE uid=?" |
180 | struct GNUNET_MYSQL_StatementHandle *dec_repl; | 180 | struct GNUNET_MYSQL_StatementHandle *dec_repl; |
181 | 181 | ||
182 | #define SELECT_SIZE "SELECT SUM(BIT_LENGTH(value) DIV 8) FROM gn090" | 182 | #define SELECT_SIZE "SELECT SUM(BIT_LENGTH(value) DIV 8) FROM gn090" |