mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-05 15:55:57 +03:00
Test cases intended to improve coverage of main.c. (CVS 1763)
FossilOrigin-Name: 15a084e9ea14d093f75c54a321f146c18f4453d7
This commit is contained in:
@@ -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.241 2004/06/29 11:26:59 drh Exp $
|
||||
** $Id: main.c,v 1.242 2004/06/29 13:18:24 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include "os.h"
|
||||
@@ -894,7 +894,10 @@ const void *sqlite3_errmsg16(sqlite3 *db){
|
||||
};
|
||||
|
||||
if( db && db->pErr ){
|
||||
if( db->magic==SQLITE_MAGIC_ERROR ){
|
||||
if( db->magic!=SQLITE_MAGIC_OPEN &&
|
||||
db->magic!=SQLITE_MAGIC_BUSY &&
|
||||
db->magic!=SQLITE_MAGIC_CLOSED
|
||||
){
|
||||
return (void *)(&misuseBe[SQLITE_UTF16NATIVE==SQLITE_UTF16LE?1:0]);
|
||||
}
|
||||
if( !sqlite3_value_text16(db->pErr) ){
|
||||
@@ -1277,6 +1280,7 @@ int sqlite3_create_collation(
|
||||
}else{
|
||||
pColl->xCmp = xCompare;
|
||||
pColl->pUser = pCtx;
|
||||
pColl->enc = enc;
|
||||
}
|
||||
sqlite3Error(db, rc, 0);
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user