Skip to content

Commit cdeec7f

Browse files
committed
build(pom.xml): update H2 to 1.4.199
Changelog: http://www.h2database.com/html/changelog.html Re-apply f087be3 commit. Also fixes SQL query that have undetermined results: % In absence of ORDER BY clause rows don't have any specific order. Older versions of H2 produce row with TRUE first, newer version of H2 produce row with FALSE first. Both behaviors are valid. Non-standard LIMIT clause truncates the second row. % See for details: h2database/h2database#1874 This change makes migrations work on H2 1.4.198+ No functional changes.
1 parent 699351b commit cdeec7f

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@
505505
<groovy.version>2.0.8</groovy.version>
506506

507507
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.5.20.RELEASE/spring-boot-dependencies/pom.xml) -->
508-
<h2.version>1.4.197</h2.version>
508+
<h2.version>1.4.199</h2.version>
509509

510510
<!-- Redefine default value from spring-boot-dependencies (https://github.com/spring-projects/spring-boot/blob/v1.5.20.RELEASE/spring-boot-dependencies/pom.xml) -->
511511
<hamcrest.version>1.3</hamcrest.version>

src/main/resources/liquibase/version/0.4/2017-11-14--separate_buyers_and_sellers.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
</changeSet>
1616

1717
<changeSet id="assign-is_buyer-column" author="php-coder" context="test-data, prod-data">
18+
<validCheckSum>7:9ab3c2a79a25db0059decdf20dbf2b3a</validCheckSum>
19+
1820
<comment>Find and mark all buyers</comment>
1921

2022
<sql>
2123
UPDATE transaction_participants p
22-
SET is_buyer = (
23-
SELECT TRUE
24+
SET is_buyer = EXISTS(
25+
SELECT ss.id
2426
FROM series_sales ss
2527
WHERE ss.buyer_id = p.id
26-
UNION
27-
SELECT FALSE
2828
LIMIT 1
2929
)
3030
</sql>
@@ -39,16 +39,16 @@
3939
</changeSet>
4040

4141
<changeSet id="assign-is_seller-column" author="php-coder" context="test-data, prod-data">
42+
<validCheckSum>7:c02e49c0b7fbd12b06feb50f2bdef680</validCheckSum>
43+
4244
<comment>Find and mark all sellers</comment>
4345

4446
<sql>
4547
UPDATE transaction_participants p
46-
SET is_seller = (
47-
SELECT TRUE
48+
SET is_seller = EXISTS(
49+
SELECT ss.id
4850
FROM series_sales ss
4951
WHERE ss.seller_id = p.id
50-
UNION
51-
SELECT FALSE
5252
LIMIT 1
5353
)
5454
</sql>

0 commit comments

Comments
 (0)