Skip to content
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

Regression in reset sequence for MySQL #212

Closed
Gusted opened this issue Jul 14, 2024 · 3 comments
Closed

Regression in reset sequence for MySQL #212

Gusted opened this issue Jul 14, 2024 · 3 comments
Labels

Comments

@Gusted
Copy link

Gusted commented Jul 14, 2024

Hi,

For the Forgejo project, an automatic dependency update PR was opened for testfixtures to version v3.12.0 from v3.11.0 and the CI caught an error that was related to the update:

LoadFixtures failed after retries: Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE `issue` AUTO_INCREMENT = 10000;ALTER TABLE `issue_label` AUTO_INCREM' at line 1

This looks like to be a regression from #208. It seems like MySQL doesn't allow multiple ALTER statements in one go.

@andreynering
Copy link
Contributor

Hi @Gusted,

Can you add the multiStatements parameters like this?:

MYSQL_CONN_STRING="root:@/testfixtures_test?multiStatements=true"

That parameter is required, and we have that documented on the README.

@nannany
Copy link

nannany commented Jul 16, 2024

I was also getting the following error, but by putting the multiStatements=true option, it worked. Thank you very much.

Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ALTER TABLE ~~~

@andreynering
Copy link
Contributor

I'm closing for now, but if anyone has any thoughts, feel free to add.

@andreynering andreynering closed this as not planned Won't fix, can't repro, duplicate, stale Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants