previous fix was incompatible with mysql extension
This commit is contained in:
@@ -2228,8 +2228,14 @@ if (typeof(window.parent) != 'undefined'
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// do not use a table alias in a condition
|
// Do not use a table alias in a condition.
|
||||||
if ($meta->table != $meta->orgtable) {
|
// Test case is:
|
||||||
|
// select * from galerie x WHERE
|
||||||
|
//(select count(*) from galerie y where y.datum=x.datum)>1
|
||||||
|
//
|
||||||
|
// But orgtable is present only with mysqli extension so the
|
||||||
|
// fix is only for mysqli.
|
||||||
|
if (isset($meta->orgtable) && $meta->table != $meta->orgtable) {
|
||||||
$meta->table = $meta->orgtable;
|
$meta->table = $meta->orgtable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user