forked from lix-project/lix
* Open the database read-only when enumerating tables.
This commit is contained in:
parent
383297e0e8
commit
64582f54be
|
@ -101,7 +101,7 @@ void enumDB(const string & filename, const string & dbname,
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
auto_ptr<Db2> db = openDB(filename, dbname, false);
|
auto_ptr<Db2> db = openDB(filename, dbname, true);
|
||||||
|
|
||||||
Dbc * cursor;
|
Dbc * cursor;
|
||||||
db->cursor(0, &cursor, 0);
|
db->cursor(0, &cursor, 0);
|
||||||
|
|
Loading…
Reference in a new issue