Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
eda7b8a8
Commit
eda7b8a8
authored
Nov 23, 2014
by
webchick
Browse files
Issue
#2232881
by danblack: pdo used to require comment escaping - doesn'\''t on supported versions
parent
36adf946
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Database/Driver/mysql/Schema.php
View file @
eda7b8a8
...
...
@@ -474,9 +474,6 @@ public function changeField($table, $field, $field_new, $spec, $keys_new = array
}
public
function
prepareComment
(
$comment
,
$length
=
NULL
)
{
// Work around a bug in some versions of PDO, see http://bugs.php.net/bug.php?id=41125
$comment
=
str_replace
(
"'"
,
'’'
,
$comment
);
// Truncate comment to maximum comment length.
if
(
isset
(
$length
))
{
// Add table prefixes before truncating.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment