forked from spring-projects/spring-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test to assess claim in SPR-10330
This commit verifies that JdbcTestUtils.readScript() properly handles SQL comments prefixed by tab characters. Issue: SPR-10330
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...test/resources/org/springframework/test/jdbc/test-data-with-comments-and-leading-tabs.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- The next comment line starts with a tab. | ||
-- x, y, z... | ||
|
||
insert into customer (id, name) | ||
values (1, 'Sam Brannen'); | ||
-- This is also a comment with a leading tab. | ||
insert into orders(id, order_date, customer_id) values (1, '2013-06-08', 1); | ||
-- This is also a comment with a leading tab, a space, and a tab. | ||
insert into orders(id, order_date, customer_id) values (2, '2013-06-08', 1); |