-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: spark db:table
causes an error with table name including special chars
#6765
Comments
I think its the protectIdentifiers() method. |
Related #8647 |
@codeigniter4/database-team |
I sent PR #8696 for a different approach. |
TBH, I have never created or worked with table names that contain special characters. Will the same problem occur if we try to create a normal query with our Model class? It seems like we're producing a lot of additional code that will be used only in theory - but this is only my experience. |
The command can list table names even if there is a table name that contains special characters, but when showing the table meta data, an mysqli_sql_exception occurs. This is a bug in which the escaping process is forgotten. Yes, usually there are no such tables, so the occurrence is infrequent. However, It just so happens that the error occurred with this command, but the real issue may be what to do with |
PHP Version
8.1
CodeIgniter4 Version
develop
(30258d5)CodeIgniter4 Installation Method
Git
Which operating systems have you tested for this bug?
macOS
Which server did you use?
cli
Database
MySQL 5.7
What happened?
Steps to Reproduce
Create a table named
Run
php spark db:table
.Expected Output
No error.
Anything else?
No response
The text was updated successfully, but these errors were encountered: