Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
211010717
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
211010717
Commits
a2e6e97a
Unverified
Commit
a2e6e97a
authored
4 years ago
by
曹华栋
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
bugfix: fix getGeneratedKeys may get history pk (#3418)
parent
61321410
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
changes/1.5.0.md
+1
-0
1 addition, 0 deletions
changes/1.5.0.md
changes/en-us/1.5.0.md
+1
-0
1 addition, 0 deletions
changes/en-us/1.5.0.md
rm-datasource/src/main/java/io/seata/rm/datasource/AbstractStatementProxy.java
+1
-9
1 addition, 9 deletions
...n/java/io/seata/rm/datasource/AbstractStatementProxy.java
with
3 additions
and
9 deletions
changes/1.5.0.md
+
1
−
0
View file @
a2e6e97a
...
...
@@ -27,6 +27,7 @@ Seata 是一款开源的分布式事务解决方案,提供高性能和简单
-
[
[#3293
](
https://github.com/seata/seata/pull/3293
)
] 修复配置缓存获取值时类型不匹配的bug
-
[
[#3241
](
https://github.com/seata/seata/pull/3241
)
] 禁止在多SQL的情况下使用 limit 和 order by 语法
-
[
[#3406
](
https://github.com/seata/seata/pull/3406
)
] 修复当config.txt中包含特殊字符时,键值对无法被推上nacos
-
[
[#3418
](
https://github.com/seata/seata/pull/3418
)
] 修复 getGeneratedKeys 可能会取到历史的主键的问题
...
...
This diff is collapsed.
Click to expand it.
changes/en-us/1.5.0.md
+
1
−
0
View file @
a2e6e97a
...
...
@@ -27,6 +27,7 @@
-
[
[#3293
](
https://github.com/seata/seata/pull/3293
)
] configuration cache get value cast exception
-
[
[#3241
](
https://github.com/seata/seata/pull/3241
)
] forbidden use order by or limit in multi sql
-
[
[#3406
](
https://github.com/seata/seata/pull/3406
)
] fix the value can not be push to nacos when special charset in config.txt
-
[
[#3418
](
https://github.com/seata/seata/pull/3418
)
] fix getGeneratedKeys may get history pk
### optimize:
...
...
This diff is collapsed.
Click to expand it.
rm-datasource/src/main/java/io/seata/rm/datasource/AbstractStatementProxy.java
+
1
−
9
View file @
a2e6e97a
...
...
@@ -42,11 +42,6 @@ public abstract class AbstractStatementProxy<T extends Statement> implements Sta
*/
protected
T
targetStatement
;
/**
* The generated keys cached row set.
*/
private
CachedRowSet
generatedKeysRowSet
;
/**
* The Target sql.
*/
...
...
@@ -249,11 +244,8 @@ public abstract class AbstractStatementProxy<T extends Statement> implements Sta
@Override
public
ResultSet
getGeneratedKeys
()
throws
SQLException
{
if
(
generatedKeysRowSet
!=
null
)
{
return
generatedKeysRowSet
;
}
ResultSet
rs
=
targetStatement
.
getGeneratedKeys
();
generatedKeysRowSet
=
RowSetProvider
.
newFactory
().
createCachedRowSet
();
CachedRowSet
generatedKeysRowSet
=
RowSetProvider
.
newFactory
().
createCachedRowSet
();
generatedKeysRowSet
.
populate
(
rs
);
return
generatedKeysRowSet
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment