Ticket #31045: meta.php.patch
File meta.php.patch, 757 bytes (added by , 10 years ago) |
---|
-
meta.php
1351 1351 // We prefer to avoid joins if possible. Look for an existing join compatible with this clause. 1352 1352 $alias = $this->find_compatible_table_alias( $clause, $parent_query ); 1353 1353 if ( false === $alias ) { 1354 $i = count( $this->table_aliases ); 1355 $alias = $i ? 'mt' . $i : $this->meta_table; 1354 if( empty( $parent_query['alias'] ) ){ 1355 $i = count( $this->table_aliases ); 1356 $alias = $i ? 'mt' . $i : $this->meta_table; 1357 } else { 1358 $alias = $parent_query['alias']; 1359 } 1356 1360 1357 1361 // JOIN clauses for NOT EXISTS have their own syntax. 1358 1362 if ( 'NOT EXISTS' === $meta_compare ) {