Skip to content

Escape apostrophe in MySQL comment (Fixes: #19779) - #19798

Merged
taylorotwell merged 1 commit into
laravel:5.4from
Douglasdc3:bugfix/19779-escape-comments-in-migration
Jun 28, 2017
Merged

Escape apostrophe in MySQL comment (Fixes: #19779)#19798
taylorotwell merged 1 commit into
laravel:5.4from
Douglasdc3:bugfix/19779-escape-comments-in-migration

Conversation

@Douglasdc3

Copy link
Copy Markdown
Contributor

When creating a field in MySQL based database and you add apostrophe it
creates invalid SQL statement.

Fix: call addslashes method which escapes apostrophe in the SQL
statement

When creating a field in MySQL based database and you add apostrophe it
creates invalid SQL statement.

Fix: call addslashes method which escapes apostrophe in the SQL
statement
@taylorotwell
taylorotwell merged commit 4ba77d0 into laravel:5.4 Jun 28, 2017
@Douglasdc3
Douglasdc3 deleted the bugfix/19779-escape-comments-in-migration branch June 28, 2017 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants