[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r10783 - gnunet/src/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r10783 - gnunet/src/datastore |
Date: |
Mon, 5 Apr 2010 00:27:58 +0200 |
Author: grothoff
Date: 2010-04-05 00:27:57 +0200 (Mon, 05 Apr 2010)
New Revision: 10783
Modified:
gnunet/src/datastore/plugin_datastore_sqlite.c
Log:
fix
Modified: gnunet/src/datastore/plugin_datastore_sqlite.c
===================================================================
--- gnunet/src/datastore/plugin_datastore_sqlite.c 2010-04-04 22:09:19 UTC
(rev 10782)
+++ gnunet/src/datastore/plugin_datastore_sqlite.c 2010-04-04 22:27:57 UTC
(rev 10783)
@@ -1609,9 +1609,11 @@
sq_prepare (plugin->dbh,
"PRAGMA page_count",
&stmt));
- CHECK (SQLITE_ROW ==
- sqlite3_step (stmt));
- pages = sqlite3_column_int64 (stmt, 0);
+ if (SQLITE_ROW ==
+ sqlite3_step (stmt))
+ pages = sqlite3_column_int64 (stmt, 0);
+ else
+ pages = 0;
sqlite3_finalize (stmt);
CHECK (SQLITE_OK ==
sq_prepare (plugin->dbh,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r10783 - gnunet/src/datastore,
gnunet <=