Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore2_Queries.php |
— | — | @@ -995,8 +995,8 @@ |
996 | 996 | $this->m_dbs->query( $this->getCreateTempIDTableSQL( $tmpnew ), 'SMW::executeQueries' ); |
997 | 997 | $this->m_dbs->query( $this->getCreateTempIDTableSQL( $tmpres ), 'SMW::executeQueries' ); |
998 | 998 | |
999 | | - $this->m_dbs->query( 'INSERT ' . ( ( $wgDBtype == 'postgres' ) ? '' : "IGNORE" ) . " INTO $tablename (id) VALUES $values", 'SMW::executeHierarchyQuery' ); |
1000 | | - $this->m_dbs->query( 'INSERT ' . ( ( $wgDBtype == 'postgres' ) ? '' : "IGNORE" ) . " INTO $tmpnew (id) VALUES $values", 'SMW::executeHierarchyQuery' ); |
| 999 | + $this->m_dbs->query( 'INSERT ' . ( ( $wgDBtype == 'postgres' ) ? '' : 'IGNORE' ) . " INTO $tablename (id) VALUES $values", 'SMW::executeHierarchyQuery' ); |
| 1000 | + $this->m_dbs->query( 'INSERT ' . ( ( $wgDBtype == 'postgres' ) ? '' : 'IGNORE' ) . " INTO $tmpnew (id) VALUES $values", 'SMW::executeHierarchyQuery' ); |
1001 | 1001 | |
1002 | 1002 | for ( $i = 0; $i < $depth; $i++ ) { |
1003 | 1003 | $this->m_dbs->query( 'INSERT ' . ( ( $wgDBtype == 'postgres' ) ? '' : 'IGNORE ' ) . "INTO $tmpres (id) SELECT s_id" . ( $wgDBtype == 'postgres' ? '::integer' : '' ) . " FROM $smwtable, $tmpnew WHERE o_id=id", |