-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Bug: The selected data type from Entity or QueryBuilder is defferent from DB field type. #7259
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
Comments
I finished fixing the errors in this section and I can send a PR. |
This is not a bug in CodeIgniter. |
So does this need to be adjusted by the user? Or can CodeIgniter 4 add this part of the fix? |
You could use CI's Model with Entity providing the casts needed. |
Closed by #7265 |
PHP Version
8.1
CodeIgniter4 Version
4.1.5
CodeIgniter4 Installation Method
Git
Which operating systems have you tested for this bug?
Linux
Which server did you use?
cli
Database
MariaDB 10.1
What happened?
The data type selected is different from the DB field type.
For example, if you use a migrate file to define a field type as INTEGER or FLOAT, and then execute
php spark migrate
on the database to create a table, the data type returned using Query Builder will be different from the type initially set.Steps to Reproduce
4.Get data of the wrong type
Expected Output
Anything else?
No response
The text was updated successfully, but these errors were encountered: