diff options
| author | 2009-02-22 02:54:19 +0000 | |
|---|---|---|
| committer | 2009-02-22 02:54:19 +0000 | |
| commit | 8feab39ff9cc0ea5451945eaf5c4074114ee7243 (patch) | |
| tree | 878179c034e55141b0fb657abc92ddecbf8740be /src/modules/extra/m_sqlite3.cpp | |
| parent | <sqlauth:useident> logic was reversed, so it used nick when yes and vice versa (diff) | |
Use extended open method instead of the basic. Because basic always does SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE and we just want SQLITE_OPEN_READWRITE so we can warn if the db does not exist, rather than create an empty db.
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@11137 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_sqlite3.cpp')
| -rw-r--r-- | src/modules/extra/m_sqlite3.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_sqlite3.cpp b/src/modules/extra/m_sqlite3.cpp index 19f7c6b75..ef12c9a57 100644 --- a/src/modules/extra/m_sqlite3.cpp +++ b/src/modules/extra/m_sqlite3.cpp @@ -380,7 +380,7 @@ class SQLConn : public classbase int OpenDB() { - return sqlite3_open(host.host.c_str(), &conn); + return sqlite3_open_v2(host.host.c_str(), &conn, SQLITE_OPEN_READWRITE, 0); } void CloseDB() |
