about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-05-30T15·18+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-05-30T15·18+0000
commit64582f54be099eb92a75ed301c72681afa4db741 (patch)
treea19b921a7e724b42e61c07847111f060713e2e19
parent383297e0e835b69e0f4d7c97a9b8d441c2872251 (diff)
* Open the database read-only when enumerating tables.
-rw-r--r--src/db.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.cc b/src/db.cc
index 4178f6ebe29f..b33591c8b20d 100644
--- a/src/db.cc
+++ b/src/db.cc
@@ -101,7 +101,7 @@ void enumDB(const string & filename, const string & dbname,
 {
     try {
 
-        auto_ptr<Db2> db = openDB(filename, dbname, false);
+        auto_ptr<Db2> db = openDB(filename, dbname, true);
 
         Dbc * cursor;
         db->cursor(0, &cursor, 0);