-
Notifications
You must be signed in to change notification settings - Fork 17
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
Wrong enum value on insert/update if colum name contains string "limit" #205
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If an insert/update statement contains a (unquoted) column name which itself contains the string
limit
this column and all following columns of type enum within the same query are getting the wrong value: the enum value is interpreted as the enum index (as if the bind type is set to integer).Code to reproduce:
Instead of
$flag
and$set_flag
being equal,$set_flag
has the value 9 (value at index 1).However, my tests have shown that the enum value is correct if:
flag
comes before the columnlimits
in the querylimits
is quoted:`limits`
limit
is selectedset flag=1
instead ofset flag=?
)Also, the behavior was apparently introduced with DBD::MariaDB, I could not reproduce it with DBD::mysql (4.050).
MariaDB Server: 10.11.6 (1:10.11.6-0+deb12u1)
DBD::MariaDB: 1.22 (1.22-1+b1)
DBI: 1.643 (1.643-4)
The text was updated successfully, but these errors were encountered: