mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Storage - escape collation type in create database code pathway
Summary: without escapage here, creating databases fails. Fixes T6251. Test Plan: ran the command CREATE DATABASE foo COLLATION binary and it failed; ran the command CREATE DATABASE foo2 COLLATION "binary" and it worked; trusting that the %T still works as advertised. Reviewers: chad, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T6251 Differential Revision: https://secure.phabricator.com/D10641
This commit is contained in:
parent
923f625130
commit
928b4edffb
1 changed files with 1 additions and 1 deletions
|
@ -114,7 +114,7 @@ final class PhabricatorStorageManagementAPI {
|
|||
|
||||
queryfx(
|
||||
$this->getConn(null),
|
||||
'CREATE DATABASE IF NOT EXISTS %T COLLATE %Q',
|
||||
'CREATE DATABASE IF NOT EXISTS %T COLLATE %T',
|
||||
$this->getDatabaseName($fragment),
|
||||
$collate_text);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue