Page MenuHomePhabricator

D10632.diff
No OneTemporary

D10632.diff

diff --git a/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php b/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
--- a/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
+++ b/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
@@ -109,10 +109,14 @@
}
public function createDatabase($fragment) {
+ $info = $this->getCharsetInfo();
+ list($charset, $collate_text, $collate_sort) = $info;
+
queryfx(
$this->getConn(null),
- 'CREATE DATABASE IF NOT EXISTS %T COLLATE utf8_general_ci',
- $this->getDatabaseName($fragment));
+ 'CREATE DATABASE IF NOT EXISTS %T COLLATE %Q',
+ $this->getDatabaseName($fragment),
+ $collate_text);
}
public function createTable($fragment, $table, array $cols) {

File Metadata

Mime Type
text/plain
Expires
Fri, Jan 24, 5:41 AM (19 h, 59 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7039195
Default Alt Text
D10632.diff (843 B)

Event Timeline