[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24078 - gnunet/src/namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24078 - gnunet/src/namestore |
Date: |
Fri, 28 Sep 2012 11:44:18 +0200 |
Author: grothoff
Date: 2012-09-28 11:44:18 +0200 (Fri, 28 Sep 2012)
New Revision: 24078
Modified:
gnunet/src/namestore/plugin_namestore_sqlite.c
Log:
-simplify
Modified: gnunet/src/namestore/plugin_namestore_sqlite.c
===================================================================
--- gnunet/src/namestore/plugin_namestore_sqlite.c 2012-09-28 09:37:15 UTC
(rev 24077)
+++ gnunet/src/namestore/plugin_namestore_sqlite.c 2012-09-28 09:44:18 UTC
(rev 24078)
@@ -287,10 +287,9 @@
create_indices (plugin->dbh);
-#define ALL "zone_key, record_name, record_count, record_data,
block_expiration_time, signature"
if ((sq_prepare
(plugin->dbh,
- "INSERT INTO ns091records (" ALL ", zone_delegation, zone_hash,
record_name_hash, rvalue) VALUES "
+ "INSERT INTO ns091records (zone_key, record_name, record_count,
record_data, block_expiration_time, signature, zone_delegation, zone_hash,
record_name_hash, rvalue) VALUES "
"(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)",
&plugin->put_records) != SQLITE_OK) ||
(sq_prepare
@@ -299,27 +298,27 @@
&plugin->remove_records) != SQLITE_OK) ||
(sq_prepare
(plugin->dbh,
- "SELECT " ALL
+ "SELECT zone_key, record_name, record_count, record_data,
block_expiration_time, signature"
" FROM ns091records WHERE zone_hash=? AND record_name_hash=? ORDER BY
rvalue LIMIT 1 OFFSET ?",
&plugin->iterate_records) != SQLITE_OK) ||
(sq_prepare
(plugin->dbh,
- "SELECT " ALL
+ "SELECT zone_key, record_name, record_count, record_data,
block_expiration_time, signature"
" FROM ns091records WHERE zone_hash=? ORDER BY rvalue LIMIT 1 OFFSET
?",
&plugin->iterate_by_zone) != SQLITE_OK) ||
(sq_prepare
(plugin->dbh,
- "SELECT " ALL
+ "SELECT zone_key, record_name, record_count, record_data,
block_expiration_time, signature"
" FROM ns091records WHERE record_name_hash=? ORDER BY rvalue LIMIT 1
OFFSET ?",
&plugin->iterate_by_name) != SQLITE_OK) ||
(sq_prepare
(plugin->dbh,
- "SELECT " ALL
+ "SELECT zone_key, record_name, record_count, record_data,
block_expiration_time, signature"
" FROM ns091records ORDER BY rvalue LIMIT 1 OFFSET ?",
&plugin->iterate_all) != SQLITE_OK) ||
(sq_prepare
(plugin->dbh,
- "SELECT " ALL
+ "SELECT zone_key, record_name, record_count, record_data,
block_expiration_time, signature"
" FROM ns091records WHERE zone_hash=? AND zone_delegation=?",
&plugin->zone_to_name) != SQLITE_OK) ||
(sq_prepare
@@ -330,7 +329,6 @@
LOG_SQLITE (plugin,GNUNET_ERROR_TYPE_ERROR, "precompiling");
return GNUNET_SYSERR;
}
-#undef ALL
return GNUNET_OK;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24078 - gnunet/src/namestore,
gnunet <=