diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-05-30T15·18+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-05-30T15·18+0000 |
commit | 64582f54be099eb92a75ed301c72681afa4db741 (patch) | |
tree | a19b921a7e724b42e61c07847111f060713e2e19 /src | |
parent | 383297e0e835b69e0f4d7c97a9b8d441c2872251 (diff) |
* Open the database read-only when enumerating tables.
Diffstat (limited to 'src')
-rw-r--r-- | src/db.cc | 2 |
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); |