* Open the database read-only when enumerating tables.

This commit is contained in:
Eelco Dolstra 2003-05-30 15:18:30 +00:00
parent 383297e0e8
commit 64582f54be

View file

@ -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);