mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 12:09:03 -04:00
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
This commit is contained in:
parent
a19cdb31b1
commit
8feab39ff9
@ -380,7 +380,7 @@ class SQLConn : public classbase
|
|||||||
|
|
||||||
int OpenDB()
|
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()
|
void CloseDB()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user