Reedy has uploaded a new change for review. ( https://gerrit.wikimedia.org/r/377671 )
Change subject: Quote $default in PostgresUpdater::setDefault ...................................................................... Quote $default in PostgresUpdater::setDefault Bug: T175439 Change-Id: Id5f5f4f34c7b9ff9af4b706e3e126ba8fda6a0d5 (cherry picked from commit bc12345f4bb7893030c31e1133abc4b20153f59b) --- M includes/installer/PostgresUpdater.php 1 file changed, 2 insertions(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/71/377671/1 diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index 790fbe7..2b1f062 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -746,7 +746,8 @@ $info = $this->db->fieldInfo( $table, $field ); if ( $info->defaultValue() !== $default ) { $this->output( "Changing '$table.$field' default value\n" ); - $this->db->query( "ALTER TABLE $table ALTER $field SET DEFAULT " . $default ); + $this->db->query( "ALTER TABLE $table ALTER $field SET DEFAULT " + . $this->db->addQuotes( $default ) ); } } -- To view, visit https://gerrit.wikimedia.org/r/377671 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Id5f5f4f34c7b9ff9af4b706e3e126ba8fda6a0d5 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: REL1_28 Gerrit-Owner: Reedy <re...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits