stupid PostgreSQL insists on parentheses :)
authorWil Mahan <wmahan@users.mediawiki.org>
Wed, 29 Sep 2004 05:53:01 +0000 (05:53 +0000)
committerWil Mahan <wmahan@users.mediawiki.org>
Wed, 29 Sep 2004 05:53:01 +0000 (05:53 +0000)
maintenance/parserTests.php

index 9e6b1b8..117b1e2 100644 (file)
@@ -313,7 +313,7 @@ class ParserTest {
                        if (!(strcmp($db->getServerVersion(), '4.1') < 0 and stristr($db->getSoftwareLink(), 'MySQL'))) {
                                # Database that supports CREATE TABLE ... LIKE
                                foreach ($tables as $tbl) {
-                                       $db->query("CREATE TEMPORARY TABLE $wgDBprefix$tbl LIKE $tbl");
+                                       $db->query("CREATE TEMPORARY TABLE $wgDBprefix$tbl (LIKE $tbl)");
                                }
                        }
                        else {