Multi-insert appeared in Postgres 8.2, not 8.1
authorGreg Sabino Mullane <greg@users.mediawiki.org>
Thu, 9 Aug 2007 17:34:34 +0000 (17:34 +0000)
committerGreg Sabino Mullane <greg@users.mediawiki.org>
Thu, 9 Aug 2007 17:34:34 +0000 (17:34 +0000)
Bug #10763.

RELEASE-NOTES
includes/DatabasePostgres.php

index ccda196..54d42ac 100644 (file)
@@ -372,7 +372,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   disable user setting of PHP include_path setting
 * glob() is horribly unreliable and doesn't work on some systems, including
   free.fr shared hosting. No longer using it in Language::getLanguageNames()
-
+* (bug 10763) Fix multi-insert logic for Postgres.
 
 == API changes since 1.10 ==
 
index 7f738a4..113be2c 100644 (file)
@@ -694,7 +694,7 @@ class DatabasePostgres extends Database {
                $sql = "INSERT INTO $table (" . implode( ',', $keys ) . ') VALUES ';
 
                if ( $multi ) {
-                       if ( $wgDBversion >= 8.1 ) {
+                       if ( $wgDBversion >= 8.2 ) {
                                $first = true;
                                foreach ( $args as $row ) {
                                        if ( $first ) {