1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Allow the SQLITE_OPEN_EXCLUSIVE flag in sqlite3_open(). Return the

SQLITE_CANTOPEN_EXISTS extended code to indicate that the open failed because
the database already exists.

FossilOrigin-Name: d091150ff80709a1e50e0431aa33021f036979e4a88e9769eeec431dfad6d5f5
This commit is contained in:
drh
2021-06-24 18:23:54 +00:00
parent c06836c3b1
commit dff34ab96f
6 changed files with 22 additions and 12 deletions

View File

@@ -3149,7 +3149,6 @@ static int openDatabase(
** off all other flags.
*/
flags &= ~( SQLITE_OPEN_DELETEONCLOSE |
SQLITE_OPEN_EXCLUSIVE |
SQLITE_OPEN_MAIN_DB |
SQLITE_OPEN_TEMP_DB |
SQLITE_OPEN_TRANSIENT_DB |