-
-
Notifications
You must be signed in to change notification settings - Fork 189
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
PDOException on running flow command database:setcharset with PHP8 / MariaDB #2724
Comments
@vixe76 Can you try and use the |
The generated SQL runs without any error because there isn't a transaction contained. |
This can be fixed in the command handler by removing the lines related to transactions (https://github.com/neos/flow-development-collection/blob/master/Neos.Flow/Classes/Command/DatabaseCommandController.php#L137) For the record: Those transactions never worked (and could not be rolled back) but previously this was just ignored |
Well, that was quick 🐎 |
Thanks for the report, @vixe76! I have to admit that someone using / upgrading to PHP8 still is not on that charset, though. 😎 Or did you try running that for some other reason? |
The reason was a Flow 7.3 with PHP 8 Upgrade. |
Figured that much. I was just wondering if you actually needed that, because you were still on plain utf8. Pure curiosity. 😎 |
You're right ... I'm really not needed that since the DB was with a prior Flow upgrade always on utf8mb. It was more a reflex to do that unreflected on every upgrade step by reading the release notes 🙈 |
But probably very good you had that reflex, that's how you found a bug! 👍🏼 |
Description
Running
./flow database:setcharset
with MariaDB / MySQL results in an PDOExceptionAffected Versions
Flow: 7.3
The text was updated successfully, but these errors were encountered: