Kipcool has uploaded a new change for review.
https://gerrit.wikimedia.org/r/71853
Change subject: forgot to actually use $join... trying with a second
straight_join for syntrans
......................................................................
forgot to actually use $join...
trying with a second straight_join for syntrans
Change-Id: I42d4147e97650b8b2cd49966b12261c82d16b906
---
M includes/specials/SpecialDatasearch.php
1 file changed, 10 insertions(+), 4 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikiLexicalData
refs/changes/53/71853/1
diff --git a/includes/specials/SpecialDatasearch.php
b/includes/specials/SpecialDatasearch.php
index 17d3869..b165138 100644
--- a/includes/specials/SpecialDatasearch.php
+++ b/includes/specials/SpecialDatasearch.php
@@ -233,9 +233,7 @@
);
$whereClause = array(
- 'exp.expression_id = synt.expression_id',
- 'synt.identical_meaning' => 1,
- 'synt.remove_transaction_id' => null
+ 'exp.remove_transaction_id' => null
);
// default, order by is changed below in the case of a
searchText
@@ -245,6 +243,13 @@
);
$join = array();
+
+ $join['synt'] = array( 'STRAIGHT_JOIN', array(
+ 'exp.expression_id = synt.expression_id',
+ 'synt.identical_meaning' => 1,
+ 'synt.remove_transaction_id' => null
+ ));
+
if ( $this->offset > 0 ) {
$options['OFFSET'] = $this->offset;
@@ -286,7 +291,8 @@
$fields,
$whereClause,
__METHOD__,
- $options
+ $options,
+ $join
);
$this->resultCount = $queryResult->numRows() ;
--
To view, visit https://gerrit.wikimedia.org/r/71853
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I42d4147e97650b8b2cd49966b12261c82d16b906
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikiLexicalData
Gerrit-Branch: master
Gerrit-Owner: Kipcool <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits