diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-05-06 20:37:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-05-06 20:37:05 +0000 |
commit | ba9b08efd901297bf0f889f9beaa80a5d7076ac9 (patch) | |
tree | fca6411b68d00f90303dca4a8f3b38068cf58f4f /src/datastore/plugin_datastore_sqlite.c | |
parent | 1e94a424f360666f438064901fa9a800aa6e383e (diff) | |
download | gnunet-ba9b08efd901297bf0f889f9beaa80a5d7076ac9.tar.gz gnunet-ba9b08efd901297bf0f889f9beaa80a5d7076ac9.zip |
better
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 824b74ad2..9a387bb14 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c | |||
@@ -44,7 +44,7 @@ | |||
44 | * a failure of the command 'cmd' on file 'filename' | 44 | * a failure of the command 'cmd' on file 'filename' |
45 | * with the message given by strerror(errno). | 45 | * with the message given by strerror(errno). |
46 | */ | 46 | */ |
47 | #define LOG_SQLITE(db, msg, level, cmd) do { GNUNET_log_from (level, "sqlite", _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, sqlite3_errmsg(db->dbh)); if (msg != NULL) GNUNET_asprintf(msg, _("`%s' failed with error: %s"), cmd, sqlite3_errmsg(db->dbh)); } while(0) | 47 | #define LOG_SQLITE(db, msg, level, cmd) do { GNUNET_log_from (level, "sqlite", _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__, __LINE__, sqlite3_errmsg(db->dbh)); if (msg != NULL) GNUNET_asprintf(msg, _("`%s' failed at %s:%u with error: %s"), cmd, __FILE__, __LINE__, sqlite3_errmsg(db->dbh)); } while(0) |
48 | 48 | ||
49 | #define SELECT_IT_LOW_PRIORITY_1 \ | 49 | #define SELECT_IT_LOW_PRIORITY_1 \ |
50 | "SELECT size,type,prio,anonLevel,expire,hash,value,_ROWID_ FROM gn080 WHERE (prio = ? AND hash > ?) "\ | 50 | "SELECT size,type,prio,anonLevel,expire,hash,value,_ROWID_ FROM gn080 WHERE (prio = ? AND hash > ?) "\ |