yabhq / laravel-scout-mysql-driver

Laravel Scout MySQL Driver
MIT License
522 stars 113 forks source link

Escape SQL sentences to avoid conflicts with reserved words #107

Closed romanmiranda closed 3 years ago

romanmiranda commented 4 years ago

I found this issue when I try to use the Searchable trait in a table named 'groups' in MySQL 8.0. I think is better to have escaped names escaped to prevent this.

Thanks!