-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Fix #18962 - Moving columns with ENUM() datatype and DEFAULT value causes invalid SQL #19009
Fix #18962 - Moving columns with ENUM() datatype and DEFAULT value causes invalid SQL #19009
Conversation
Can anyone please review my PR ? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## QA_5_2 #19009 +/- ##
=========================================
Coverage 48.61% 48.61%
- Complexity 17006 17027 +21
=========================================
Files 607 607
Lines 72318 72366 +48
=========================================
+ Hits 35154 35182 +28
- Misses 37164 37184 +20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@ChrisHSandN i have updated the logic . Please retest. Thank you . |
b84cf8f
to
5f92a81
Compare
Signed-off-by: Robert Johnson Nallori <johnson361@gmail.com>
5f92a81
to
fe5af1a
Compare
libraries/classes/Controllers/Table/Structure/MoveColumnsController.php
Outdated
Show resolved
Hide resolved
Signed-off-by: Robert Johnson Nallori <johnson361@gmail.com>
Closing this one since #19105 got merged Thank you for contributing to fix this issue. Please test with the new changes and let us know |
Description
When executing this query on MariaDB, the COLUMN_DEFAULT column returns default values enclosed in single quotes on both sides, causing an issue. However, in MySQL, this behavior is not observed. To address the inconsistency, I needed to trim off any extra single quotes that might exist in the COLUMN_DEFAULT values using TRIM('\'' FROM COLUMN_DEFAULT`). Now, the issue is resolved.
Fixes #18962
You can see how the data appeared before the query modifications in the image below.
[
]