[-] Classes : Db : Fixed $link
This commit is contained in:
1 parent
8c5c7e1bb4
commit
b8df8e6fb1
2 files changed
+4
-4
No files matched your search
@@ -181,7 +181,7 @@ class DbMySQLiCore extends Db
|
|||||||
$value = 'InnoDB';
|
$value = 'InnoDB';
|
||||||
|
|
||||||
$sql = 'SHOW VARIABLES WHERE Variable_name = \'have_innodb\'';
|
$sql = 'SHOW VARIABLES WHERE Variable_name = \'have_innodb\'';
|
||||||
$result = $link->query($sql);
|
$result = $this->link->query($sql);
|
||||||
if (!$result)
|
if (!$result)
|
||||||
$value = 'MyISAM';
|
$value = 'MyISAM';
|
||||||
$row = $result->fetch_assoc();
|
$row = $result->fetch_assoc();
|
||||||
@@ -190,7 +190,7 @@ class DbMySQLiCore extends Db
|
|||||||
|
|
||||||
/* MySQL >= 5.6 */
|
/* MySQL >= 5.6 */
|
||||||
$sql = 'SHOW ENGINES';
|
$sql = 'SHOW ENGINES';
|
||||||
$result = $link->query($sql);
|
$result = $this->link->query($sql);
|
||||||
while ($row = $result->fetch_assoc())
|
while ($row = $result->fetch_assoc())
|
||||||
if ($row['Engine'] == 'InnoDB')
|
if ($row['Engine'] == 'InnoDB')
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ class DbPDOCore extends Db
|
|||||||
$value = 'InnoDB';
|
$value = 'InnoDB';
|
||||||
|
|
||||||
$sql = 'SHOW VARIABLES WHERE Variable_name = \'have_innodb\'';
|
$sql = 'SHOW VARIABLES WHERE Variable_name = \'have_innodb\'';
|
||||||
$result = $link->query($sql);
|
$result = $this->link->query($sql);
|
||||||
if (!$result)
|
if (!$result)
|
||||||
$value = 'MyISAM';
|
$value = 'MyISAM';
|
||||||
$row = $result->fetch();
|
$row = $result->fetch();
|
||||||
@@ -224,7 +224,7 @@ class DbPDOCore extends Db
|
|||||||
|
|
||||||
/* MySQL >= 5.6 */
|
/* MySQL >= 5.6 */
|
||||||
$sql = 'SHOW ENGINES';
|
$sql = 'SHOW ENGINES';
|
||||||
$result = $link->query($sql);
|
$result = $this->link->query($sql);
|
||||||
while ($row = $result->fetch())
|
while ($row = $result->fetch())
|
||||||
if ($row['Engine'] == 'InnoDB')
|
if ($row['Engine'] == 'InnoDB')
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user