parent
bc6b17b850
commit
c5cf7abf0d
|
@ -874,6 +874,10 @@ abstract class IdoQuery extends DbQuery
|
||||||
'%1$s = %2$s.object_id AND LOWER(%2$s.varname) = %3$s';
|
'%1$s = %2$s.object_id AND LOWER(%2$s.varname) = %3$s';
|
||||||
foreach ($this->columnMap as $table => & $columns) {
|
foreach ($this->columnMap as $table => & $columns) {
|
||||||
foreach ($columns as $alias => & $column) {
|
foreach ($columns as $alias => & $column) {
|
||||||
|
if ($column === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Using a regex here because COLLATE may occur anywhere in the string
|
// Using a regex here because COLLATE may occur anywhere in the string
|
||||||
$column = preg_replace('/ COLLATE .+$/', '', $column, -1, $count);
|
$column = preg_replace('/ COLLATE .+$/', '', $column, -1, $count);
|
||||||
if ($count > 0) {
|
if ($count > 0) {
|
||||||
|
|
Loading…
Reference in New Issue