Commit ea6d9f33 authored by Andy Wilkinson's avatar Andy Wilkinson

Merge branch '2.1.x'

Closes gh-18298
parents 451703f3 0efee9e3
...@@ -65,8 +65,8 @@ class QuartzDataSourceInitializerTests { ...@@ -65,8 +65,8 @@ class QuartzDataSourceInitializerTests {
@Test @Test
void commentPrefixCanBeCustomized() { void commentPrefixCanBeCustomized() {
this.contextRunner.withUserConfiguration(TestConfiguration.class).withPropertyValues( this.contextRunner.withUserConfiguration(TestConfiguration.class).withPropertyValues(
"spring.quartz.jdbc.comment-prefix=##", "spring.quartz.jdbc.comment-prefix=**",
"spring.quartz.jdbc.schema=classpath:org/springframework/boot/autoconfigure/quartz/tables_@@platform@@.sql") "spring.quartz.jdbc.schema=classpath:org/springframework/boot/autoconfigure/quartz/tables_**_comments.sql")
.run(this::assertThatDataSourceHasBeenInitialized); .run(this::assertThatDataSourceHasBeenInitialized);
} }
......
## This is a test script to check custom comment prefix is taken into account ** This is a test script to check ** is treated as a comment prefix when prefix is customized
CREATE TABLE QRTZ_TEST_TABLE ( CREATE TABLE QRTZ_TEST_TABLE (
SCHED_NAME VARCHAR(120) NOT NULL, SCHED_NAME VARCHAR(120) NOT NULL,
CALENDAR_NAME VARCHAR (200) NOT NULL CALENDAR_NAME VARCHAR (200) NOT NULL
); );
## Another comment ** Another comment
COMMIT; COMMIT;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment