Commit d74f2e23 by Carter Thaxton

Fixing compiler issue due to nested classes not having friend status

parent 5bc0ac79
......@@ -90,6 +90,9 @@ public:
sqlite3_int64 rowid;
};
bool IsOpen() { return open; }
bool IsLocked() { return locked; }
typedef Async<std::string, Database> AsyncTrace;
typedef Async<ProfileInfo, Database> AsyncProfile;
typedef Async<UpdateInfo, Database> AsyncUpdate;
......
......@@ -134,7 +134,7 @@ public:
}
virtual ~PrepareBaton() {
stmt->Unref();
if (!db->open && db->locked) {
if (!db->IsOpen() && db->IsLocked()) {
// The database handle was closed before the statement could be
// prepared.
stmt->Finalize();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment