Skip to content

Commit 7ea8323

Browse files
committed
feat: 4.2.0 适配r2dbc 1.x
1 parent 4ba1d7c commit 7ea8323

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

hsweb-easy-orm-core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>hsweb-easy-orm</artifactId>
77
<groupId>org.hswebframework</groupId>
8-
<version>4.1.3-SNAPSHOT</version>
8+
<version>4.2.0-SNAPSHOT</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

hsweb-easy-orm-rdb/pom.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>hsweb-easy-orm</artifactId>
77
<groupId>org.hswebframework</groupId>
8-
<version>4.1.3-SNAPSHOT</version>
8+
<version>4.2.0-SNAPSHOT</version>
99
<relativePath>../pom.xml</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>
@@ -91,25 +91,28 @@
9191
<dependency>
9292
<groupId>io.r2dbc</groupId>
9393
<artifactId>r2dbc-h2</artifactId>
94+
<version>1.0.0.RELEASE</version>
9495
<optional>true</optional>
9596
</dependency>
9697

9798
<dependency>
9899
<groupId>io.asyncer</groupId>
99100
<artifactId>r2dbc-mysql</artifactId>
100-
<version>0.9.7</version>
101+
<version>1.3.0</version>
101102
<optional>true</optional>
102103
</dependency>
103104

104105
<dependency>
105106
<groupId>org.postgresql</groupId>
106107
<artifactId>r2dbc-postgresql</artifactId>
108+
<version>1.0.7.RELEASE</version>
107109
<optional>true</optional>
108110
</dependency>
109111

110112
<dependency>
111113
<groupId>io.r2dbc</groupId>
112114
<artifactId>r2dbc-mssql</artifactId>
115+
<version>1.0.2.RELEASE</version>
113116
<optional>true</optional>
114117
</dependency>
115118

@@ -123,6 +126,7 @@
123126
<dependency>
124127
<groupId>io.r2dbc</groupId>
125128
<artifactId>r2dbc-spi</artifactId>
129+
<version>1.0.0.RELEASE</version>
126130
<optional>true</optional>
127131
</dependency>
128132

hsweb-easy-orm-rdb/src/main/java/org/hswebframework/ezorm/rdb/executor/reactive/r2dbc/R2dbcReactiveSqlExecutor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public Mono<Integer> update(Publisher<SqlRequest> request) {
128128
return this
129129
.doExecute(Operation.execute, _logger, toFlux(request), Result::getRowsUpdated)
130130
.doOnNext(count -> _logger.debug("==> Updated: {}", count))
131-
.reduce(0, Math::addExact);
131+
.reduce(0, (l,r)-> l + r.intValue());
132132
});
133133
}
134134

pom.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>org.hswebframework</groupId>
77
<artifactId>hsweb-easy-orm</artifactId>
88
<packaging>pom</packaging>
9-
<version>4.1.3-SNAPSHOT</version>
9+
<version>4.2.0-SNAPSHOT</version>
1010
<modules>
1111
<module>hsweb-easy-orm-core</module>
1212
<module>hsweb-easy-orm-rdb</module>
@@ -271,13 +271,13 @@
271271
<version>3.14.0</version>
272272
</dependency>
273273

274-
<dependency>
275-
<groupId>io.r2dbc</groupId>
276-
<artifactId>r2dbc-bom</artifactId>
277-
<version>${r2dbc.version}</version>
278-
<type>pom</type>
279-
<scope>import</scope>
280-
</dependency>
274+
<!-- <dependency>-->
275+
<!-- <groupId>io.r2dbc</groupId>-->
276+
<!-- <artifactId>r2dbc-bom</artifactId>-->
277+
<!-- <version>${r2dbc.version}</version>-->
278+
<!-- <type>pom</type>-->
279+
<!-- <scope>import</scope>-->
280+
<!-- </dependency>-->
281281

282282
<dependency>
283283
<groupId>org.projectlombok</groupId>

0 commit comments

Comments
 (0)