[GB.DB]
* BUG: Don't crash when trying to open a non-existing sqlite database with the 'sqlite' pseudo-driver. git-svn-id: svn://localhost/gambas/trunk@6705 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
ad31e91156
commit
70fb104425
@ -143,11 +143,7 @@ static char *FindDatabase(char *name, char *hostName)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
||||
open_database()
|
||||
|
||||
*****************************************************************************/
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
static int open_database(DB_DESC *desc, DB_DATABASE * db)
|
||||
{
|
||||
@ -193,6 +189,13 @@ __SQLITE3:
|
||||
}
|
||||
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
static int database_is_system(DB_DATABASE * db, const char *name)
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
||||
The driver interface
|
||||
@ -201,8 +204,8 @@ __SQLITE3:
|
||||
|
||||
DB_DRIVER DB_sqlite_pseudo_driver =
|
||||
{
|
||||
"sqlite",
|
||||
open_database,
|
||||
0
|
||||
.name = "sqlite",
|
||||
.Open = open_database,
|
||||
.Database.IsSystem = database_is_system
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user