dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd21567
)
Quote $default in PostgresUpdater::setDefault
author
Reedy
<reedy@wikimedia.org>
Sat, 9 Sep 2017 16:11:24 +0000
(17:11 +0100)
committer
Reedy
<reedy@wikimedia.org>
Sat, 9 Sep 2017 16:18:46 +0000
(16:18 +0000)
Bug: T175439
Change-Id: Id5f5f4f34c7b9ff9af4b706e3e126ba8fda6a0d5
includes/installer/PostgresUpdater.php
patch
|
blob
|
history
diff --git
a/includes/installer/PostgresUpdater.php
b/includes/installer/PostgresUpdater.php
index
e5a5c94
..
07aeb13
100644
(file)
--- a/
includes/installer/PostgresUpdater.php
+++ b/
includes/installer/PostgresUpdater.php
@@
-783,7
+783,8
@@
END;
$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 ) );
}
}