[GB.DB]
* BUG: The gb.db API DB.GetCurrentDatabase() should be reliable now, so that database drivers using it do not crash anymore. git-svn-id: svn://localhost/gambas/trunk@3223 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
0f5e37553a
commit
40e3647215
1 changed files with 2 additions and 0 deletions
|
@ -85,6 +85,8 @@ static void open_connection(CCONNECTION *_object)
|
|||
|
||||
static bool check_opened(CCONNECTION *_object)
|
||||
{
|
||||
DB_CurrentDatabase = &THIS->db;
|
||||
|
||||
if (!THIS->db.handle)
|
||||
open_connection(THIS);
|
||||
|
||||
|
|
Loading…
Reference in a new issue