Commit bc6ddffc authored by Alexander Butenko's avatar Alexander Butenko

bugfix do not add table prefix if table name contains a dot

parent 2bfb6ca2
......@@ -443,7 +443,11 @@ class MysqliDb
$columns = '*';
$column = is_array($columns) ? implode(', ', $columns) : $columns;
$this->_tableName = self::$prefix . $tableName;
if (strpos ($tableName, '.') === false)
$this->_tableName = self::$prefix . $tableName;
else
$this->_tableName = $tableName;
$this->_query = 'SELECT ' . implode(' ', $this->_queryOptions) . ' ' .
$column . " FROM " . $this->_tableName;
$stmt = $this->_buildQuery($numRows);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment