r90200 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90199‎ | r90200 | r90201 >
Date:13:52, 16 June 2011
Author:reedy
Status:deferred
Tags:
Comment:
Add __METHOD__ to one select call
Modified paths:
  • /trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php
@@ -968,7 +968,7 @@
969969 $smwtable = $this->m_dbs->tableName( ( $query->type == SMW_SQL2_PROP_HIERARCHY ) ? 'smw_subp2':'smw_subs2' );
970970
971971 // Try to safe time (SELECT is cheaper than creating/dropping 3 temp tables):
972 - $res = $this->m_dbs->select( $smwtable, 's_id', $valuecond, array( 'LIMIT' => 1 ) );
 972+ $res = $this->m_dbs->select( $smwtable, 's_id', $valuecond, __METHOD__, array( 'LIMIT' => 1 ) );
973973
974974 if ( !$this->m_dbs->fetchObject( $res ) ) { // no subobjects, we are done!
975975 $this->m_dbs->freeResult( $res );