Index: trunk/extensions/SemanticMediaWiki/includes/storage/SMW_SQLStore.php |
— | — | @@ -876,8 +876,10 @@ |
877 | 877 | '( cat_name VARCHAR(255) NOT NULL ) |
878 | 878 | TYPE=MEMORY', 'SMW::getCategoryTable' ); |
879 | 879 | if (array_key_exists($catname, SMWSQLStore::$m_categorytables)) { // just copy known result |
880 | | - $db->insertSelect($tablename, array(SMWSQLStore::$m_categorytables[$catname]), |
881 | | - array('cat_name' => 'cat_name'),'*', 'SMW::getCategoryTable'); |
| 880 | + $db->query("INSERT INTO $tablename (cat_name) SELECT " . |
| 881 | + SMWSQLStore::$m_categorytables[$catname] . |
| 882 | + '.cat_name FROM ' . SMWSQLStore::$m_categorytables[$catname], |
| 883 | + 'SMW::getCategoryTable'); |
882 | 884 | return $tablename; |
883 | 885 | } |
884 | 886 | |