-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
Allow the comment prefix used in data source initialisation scripts to be configured #16820
Comments
I am pretty sure SQL comments are only So just change your DDL to use correct SQL comments and it will work. |
Spring Boot uses |
I think it's better that we keep ourselves aligned with the defaults in Spring Framework. A configuration option for such an edge case feels a bit too much. Only allowing standard SQL comments will also help keep scripts portable if developers ever choose to move to a different server. |
Any line in the schema script with a sql comment and without semi-colon at the end of that line causes that the next sql statement is not executed but the rest of the script will be executed anyway.
Spring Boot v2.1.4.RELEASE
DOESNT' WORK:
DROP TABLE abc IF EXISTS;
# blablabla
DROP TABLE efg IF EXISTS;
DOES WORK:
DROP TABLE abc IF EXISTS;
# blablabla;
<-- semi-colon addedDROP TABLE efg IF EXISTS;
(Please check if the issue occurs also for data.sql script)
The text was updated successfully, but these errors were encountered: