Fix little problem inserting check.data
This commit is contained in:
@@ -88,6 +88,10 @@ class database_base implements iDatabase
|
|||||||
$this->sQuoteCharacter = '';
|
$this->sQuoteCharacter = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getDatabaseName() {
|
||||||
|
return $this->sDataBase;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function generateDropTableSQL
|
* Function generateDropTableSQL
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -446,7 +446,7 @@ class workspaceTools
|
|||||||
*/
|
*/
|
||||||
private function getDatabase($rbac = false)
|
private function getDatabase($rbac = false)
|
||||||
{
|
{
|
||||||
if (isset($this->db) && $this->db->isConnected() && $rbac == false) {
|
if (isset($this->db) && $this->db->isConnected() && ($rbac == false && $this->db->getDatabaseName() == $this->dbName)) {
|
||||||
return $this->db;
|
return $this->db;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user