1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Report errors out of sqlite3_open16(). (CVS 2802)

FossilOrigin-Name: f5b58163d4520fa3e7137e8445a8ef19aae3e799
This commit is contained in:
drh
2005-12-06 13:19:07 +00:00
parent 1a485fca83
commit 7dd90a4785
3 changed files with 10 additions and 10 deletions

View File

@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
** $Id: main.c,v 1.305 2005/12/06 12:52:59 danielk1977 Exp $
** $Id: main.c,v 1.306 2005/12/06 13:19:08 drh Exp $
*/
#include "sqliteInt.h"
#include "os.h"
@@ -830,7 +830,7 @@ int sqlite3_open16(
if( zFilename8 ){
rc = openDatabase(zFilename8, ppDb);
if( rc==SQLITE_OK && *ppDb ){
sqlite3_exec(*ppDb, "PRAGMA encoding = 'UTF-16'", 0, 0, 0);
rc = sqlite3_exec(*ppDb, "PRAGMA encoding = 'UTF-16'", 0, 0, 0);
}
}
if( pVal ){