diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-09-14 11:58:34 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-09-14 11:58:34 +0000 |
commit | 81d685310e013a57b2c42017c8b9b177b9d8194d (patch) | |
tree | eb9e221c15edd09d8857c668037051ec16965e05 /src/datastore/plugin_datastore_sqlite.c | |
parent | 42e7678aeede56a706b4cce120979e500da1bf1a (diff) |
indenting
git-svn-id: https://gnunet.org/svn/gnunet@16832 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/datastore/plugin_datastore_sqlite.c')
-rw-r--r-- | src/datastore/plugin_datastore_sqlite.c | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/datastore/plugin_datastore_sqlite.c b/src/datastore/plugin_datastore_sqlite.c index 4a66c44ca3..c5952bcb0a 100644 --- a/src/datastore/plugin_datastore_sqlite.c +++ b/src/datastore/plugin_datastore_sqlite.c @@ -326,21 +326,22 @@ database_setup (const struct GNUNET_CONFIGURATION_Handle *cfg, (sq_prepare (plugin->dbh, "SELECT type,prio,anonLevel,expire,hash,value,_ROWID_ " - "FROM gn090 INDEXED BY idx_repl_rvalue " "WHERE repl=?2 AND" - " (rvalue>=?1 OR" - " NOT EXISTS (SELECT 1 FROM gn090 INDEXED BY idx_repl_rvalue WHERE repl=?2 AND rvalue>=?1 LIMIT 1))" - " ORDER BY rvalue ASC" " LIMIT 1", + "FROM gn090 INDEXED BY idx_repl_rvalue " + "WHERE repl=?2 AND " + " (rvalue>=?1 OR " + " NOT EXISTS (SELECT 1 FROM gn090 INDEXED BY idx_repl_rvalue WHERE repl=?2 AND rvalue>=?1 LIMIT 1) ) " + "ORDER BY rvalue ASC LIMIT 1", &plugin->selRepl) != SQLITE_OK) || (sq_prepare (plugin->dbh, - "SELECT MAX(repl) " "FROM gn090 INDEXED BY idx_repl_rvalue", + "SELECT MAX(repl) FROM gn090 INDEXED BY idx_repl_rvalue", &plugin->maxRepl) != SQLITE_OK) || (sq_prepare (plugin->dbh, "SELECT type,prio,anonLevel,expire,hash,value,_ROWID_ " - "FROM gn090 INDEXED BY idx_expire" - " WHERE NOT EXISTS (SELECT 1 FROM gn090 WHERE expire < ?1 LIMIT 1) OR (expire < ?1) " - " ORDER BY expire ASC LIMIT 1", &plugin->selExpi) != SQLITE_OK) || + "FROM gn090 INDEXED BY idx_expire " + "WHERE NOT EXISTS (SELECT 1 FROM gn090 WHERE expire < ?1 LIMIT 1) OR (expire < ?1) " + "ORDER BY expire ASC LIMIT 1", &plugin->selExpi) != SQLITE_OK) || (sq_prepare (plugin->dbh, "SELECT type,prio,anonLevel,expire,hash,value,_ROWID_ " @@ -350,12 +351,12 @@ database_setup (const struct GNUNET_CONFIGURATION_Handle *cfg, &plugin->selZeroAnon) != SQLITE_OK) || (sq_prepare (plugin->dbh, - "INSERT INTO gn090 (repl, type, prio, " - "anonLevel, expire, rvalue, hash, vhash, value) " + "INSERT INTO gn090 (repl, type, prio, anonLevel, expire, rvalue, hash, vhash, value) " "VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)", &plugin->insertContent) != SQLITE_OK) || (sq_prepare - (plugin->dbh, "DELETE FROM gn090 WHERE _ROWID_ = ?", + (plugin->dbh, + "DELETE FROM gn090 WHERE _ROWID_ = ?", &plugin->delRow) != SQLITE_OK)) { LOG_SQLITE (plugin, NULL, GNUNET_ERROR_TYPE_ERROR, "precompiling"); |