Added Identifier quoting (#420)

```
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order' at line 1
```
Query
```
SELECT id, ... FROM order
```
This commit is contained in:
Maxim 2017-01-09 15:31:29 +04:00 committed by Marc J. Schmidt
parent 5ea4110b62
commit 61ef13c803

View file

@ -107,7 +107,7 @@ abstract class AbstractDataDumper extends AbstractDataHandler implements DataDum
}
$stmt = $this
->con
->query(sprintf('SELECT %s FROM %s', implode(',', $in), constant(constant($tableName.'::TABLE_MAP').'::TABLE_NAME')));
->query(sprintf('SELECT `%s` FROM `%s`', implode('`, `', $in), constant(constant($tableName.'::TABLE_MAP').'::TABLE_NAME')));
$set = array();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {