diff options
Diffstat (limited to 'sql/connection.cc')
-rw-r--r-- | sql/connection.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/connection.cc b/sql/connection.cc index 38fd62a..bebf68a 100644 --- a/sql/connection.cc +++ b/sql/connection.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -367,6 +367,7 @@ bool Connection::OpenInternal(const std::string& file_name) { int err = sqlite3_open(file_name.c_str(), &db_); if (err != SQLITE_OK) { OnSqliteError(err, NULL); + Close(); db_ = NULL; return false; } |