fix escaping column names

pull/2975/head
Isaac Connor 2020-05-12 09:06:57 -04:00
parent 92ba017328
commit c5f082e7ac
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ function collectData() {
} # end foreach element
if ( count($fieldSql) ) {
$sql = 'SELECT '.join(', ', array_map($fieldSql, function($f){return '`'.$f.''''})).' FROM '.$entitySpec['table'];
$sql = 'SELECT '.join(', ', array_map($fieldSql, function($f){return '`'.$f.'`';})).' FROM '.$entitySpec['table'];
if ( $joinSql )
$sql .= ' '.join(' ', array_unique($joinSql));
if ( $id && !empty($entitySpec['selector']) ) {