fix escaping column names
parent
92ba017328
commit
c5f082e7ac
|
@ -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']) ) {
|
||||
|
|
Loading…
Reference in New Issue