* 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:
Benoît Minisini 2010-09-16 00:57:35 +00:00
parent 0f5e37553a
commit 40e3647215

View file

@ -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);