Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Fix the Database::list_fields() method (see #7277)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Sep 4, 2014
1 parent 46f0ddc commit ed179ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion contao/library/Contao/Database/Mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected function find_in_set($strKey, $varSet, $blnIsField=false)
protected function list_fields($strTable)
{
$arrReturn = array();
$objFields = $this->query("SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` LIKE '{$this->arrConfig['dbDatabase']}' AND `TABLE_NAME` LIKE '%$strTable'");
$objFields = $this->query("SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` LIKE '{$this->arrConfig['dbDatabase']}' AND `TABLE_NAME` LIKE '$strTable'");

while ($objFields->next())
{
Expand Down
2 changes: 1 addition & 1 deletion contao/library/Contao/Database/Mysqli.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ protected function find_in_set($strKey, $varSet, $blnIsField=false)
protected function list_fields($strTable)
{
$arrReturn = array();
$objFields = $this->query("SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` LIKE '{$this->arrConfig['dbDatabase']}' AND `TABLE_NAME` LIKE '%$strTable'");
$objFields = $this->query("SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` LIKE '{$this->arrConfig['dbDatabase']}' AND `TABLE_NAME` LIKE '$strTable'");

while ($objFields->next())
{
Expand Down

0 comments on commit ed179ea

Please sign in to comment.