Skip to content

Commit 45e7bb7

Browse files
authored
Merge pull request #8391 from coder-hugo/feature/mysql_ansi_quotes
Don't use double quotes in MySQL queries
2 parents 8b3e703 + 6aa8169 commit 45e7bb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/private/Repair/Collation.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* @author Morris Jobke <hey@morrisjobke.de>
77
* @author Robin Appelman <robin@icewind.nl>
88
* @author Thomas Müller <thomas.mueller@tmit.eu>
9+
* @author Robin Müller <robin.mueller@1und1.de>
910
*
1011
* @license AGPL-3.0
1112
*
@@ -124,7 +125,7 @@ protected function getAllNonUTF8BinTables(IDBConnection $connection) {
124125
" FROM INFORMATION_SCHEMA . COLUMNS" .
125126
" WHERE TABLE_SCHEMA = ?" .
126127
" AND (COLLATION_NAME <> '" . $characterSet . "_bin' OR CHARACTER_SET_NAME <> '" . $characterSet . "')" .
127-
" AND TABLE_NAME LIKE \"*PREFIX*%\"",
128+
" AND TABLE_NAME LIKE '*PREFIX*%'",
128129
array($dbName)
129130
);
130131
$rows = $statement->fetchAll();
@@ -139,7 +140,7 @@ protected function getAllNonUTF8BinTables(IDBConnection $connection) {
139140
" FROM INFORMATION_SCHEMA . TABLES" .
140141
" WHERE TABLE_SCHEMA = ?" .
141142
" AND TABLE_COLLATION <> '" . $characterSet . "_bin'" .
142-
" AND TABLE_NAME LIKE \"*PREFIX*%\"",
143+
" AND TABLE_NAME LIKE '*PREFIX*%'",
143144
[$dbName]
144145
);
145146
$rows = $statement->fetchAll();

0 commit comments

Comments
 (0)