New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added oracle database support #902
Merged
Merged
Changes from 64 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
7828822
增加oracle数据库的支持
15168326318 ca6a13a
修改ORACLEKeywordChecker,按最新MySQLKeywordChecker修改,命名规范化。
15168326318 d91306d
增加代码注释,规范代码。
15168326318 e158a84
Merge branch 'feature_oracle' into develop_oracle
15168326318 ab359d4
报ORACLE开头的类名该为Oracle
15168326318 99cdcce
.* is an incorrect type,去掉.* 这样的引用。但idea自己会导入这样的引用。
15168326318 d53f60a
.* is an incorrect type,去掉.* 这样的引用。但idea自己会导入这样的引用。
15168326318 e9cfa63
修改注释
15168326318 494af9d
本地环境修改
15168326318 966fbb9
Merge branch 'develop' of https://github.com/alibaba/fescar into deve…
15168326318 64e0086
Merge branch 'develop' of https://github.com/seata/seata into develop…
15168326318 01cd039
Merge branch 'develop' into develop_oracle
lovepoem df93d81
Merge branch 'develop' into develop_oracle
lovepoem 74aa7a3
支持oracle数据修改
15168326318 2374132
Merge remote-tracking branch 'ccg/develop_oracle' into develop_seata_…
15168326318 39bf981
修改一个小问题。
15168326318 c4f8f3b
还原distributionManagement
15168326318 aa2a015
Update pom.xml
lovepoem b4cace4
增加数据库判断处理
15168326318 d63c35c
Merge remote-tracking branch 'ccg/develop_oracle' into develop_seata_…
15168326318 8e5b4be
修改日志
15168326318 b29dd71
Merge branch 'develop' into develop_oracle
lovepoem b3f5ce6
Merge branch 'develop' into develop_oracle
lovepoem f802c0c
Merge branch 'develop' into develop_oracle
lovepoem c40fc26
Merge branch 'develop' into develop_oracle
xingfudeshi 284d180
修改maven本地地址
15168326318 0996f7f
Merge branch 'develop_oracle' of https://github.com/15168326318/fesca…
15168326318 88eae97
Merge branch 'develop' into develop_oracle
xingfudeshi 93b7dc4
Merge branch 'develop' of https://github.com/seata/seata into develop…
15168326318 62dcc61
去掉guava那个缓存的包
15168326318 015615f
Merge remote-tracking branch 'ccg/develop_oracle' into develop_seata_…
15168326318 8b1d198
还原pom.xml文件
15168326318 b87a56c
Merge branch 'develop' into develop_oracle
xingfudeshi c037142
Merge branch 'develop' into develop_oracle
lovepoem 101bd60
还原file.conf文件和去掉import * 这样的导入
15168326318 db07f46
Merge remote-tracking branch 'ccg/develop_oracle' into develop_seata_…
15168326318 736b6c2
Merge branch 'develop' into develop_oracle
lovepoem ea3f9ae
Merge branch 'develop' into develop_oracle
lovepoem 23840cf
Merge branch 'develop' into develop_oracle
xingfudeshi a04a1a7
Merge branch 'develop' into develop_oracle
lovepoem 7cc21b9
增加自己公司的需求
15168326318 e9a2f5a
Merge branch 'develop' of https://github.com/seata/seata into develop…
15168326318 6637fc3
Merge branch 'develop' of https://github.com/seata/seata into develop…
15168326318 c7d3b4f
去掉import *
15168326318 79377f9
Merge remote-tracking branch 'ccg/develop_oracle' into develop_seata_…
15168326318 a3e6347
还原pom.xml
15168326318 5a7bd3b
去掉扩展功能的代码
15168326318 32aaca4
Merge branch 'develop' into develop_oracle
15168326318 d4d002f
合并seata 0.6.0版本
15168326318 bf4682e
合并seata 0.6.0版本
15168326318 7573630
Merge branch 'develop' into develop_oracle
xingfudeshi d773dd9
Merge branch 'develop' into develop_oracle
leizhiyuan 1d8de1b
Merge branch 'develop' into develop_oracle
xingfudeshi 8d66d23
Merge branch 'develop' into develop_oracle
lovepoem 286edee
解决BaseTransactionalExecutor冲突
b31c4f7
增加oracle创建undo表的sql
0c899f6
Merge branch 'develop' into develop_oracle
15168326318 5b8c547
增加oracle undo表增加context字段
6b60cc8
Merge remote-tracking branch 'origin/develop_oracle' into develop_oracle
fa2fde9
Merge branch 'develop' into develop_oracle
lovepoem 6a076b9
oracle支持跨用户访问,表名大小写。
7aff7a2
Merge remote-tracking branch 'origin/develop_oracle' into develop_oracle
fa519d5
去掉read.md中 oracle sql脚本
cc6b0d7
Merge branch 'develop' into develop_oracle
15168326318 a85472e
去掉多余的代码
1d61330
还原file.conf文件
54f9ba9
还原file.conf文件的driver-class-name = "com.mysql.jdbc.Driver"
6f58367
Merge branch 'develop' into develop_oracle
lovepoem File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
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
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
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
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
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
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 |
---|---|---|
|
@@ -26,7 +26,10 @@ | |
import io.seata.rm.datasource.sql.druid.MySQLInsertRecognizer; | ||
import io.seata.rm.datasource.sql.druid.MySQLSelectForUpdateRecognizer; | ||
import io.seata.rm.datasource.sql.druid.MySQLUpdateRecognizer; | ||
|
||
import io.seata.rm.datasource.sql.druid.oracle.OracleDeleteRecognizer; | ||
import io.seata.rm.datasource.sql.druid.oracle.OracleInsertRecognizer; | ||
import io.seata.rm.datasource.sql.druid.oracle.OracleSelectForUpdateRecognizer; | ||
import io.seata.rm.datasource.sql.druid.oracle.OracleUpdateRecognizer; | ||
import java.util.List; | ||
|
||
/** | ||
|
@@ -62,7 +65,19 @@ public static SQLRecognizer get(String sql, String dbType) { | |
recognizer = new MySQLSelectForUpdateRecognizer(sql, ast); | ||
} | ||
} | ||
} else { | ||
} else if (JdbcConstants.ORACLE.equalsIgnoreCase(dbType)) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if |
||
if (ast instanceof SQLInsertStatement) { | ||
recognizer = new OracleInsertRecognizer(sql, ast); | ||
} else if (ast instanceof SQLUpdateStatement) { | ||
recognizer = new OracleUpdateRecognizer(sql, ast); | ||
} else if (ast instanceof SQLDeleteStatement) { | ||
recognizer = new OracleDeleteRecognizer(sql, ast); | ||
} else if (ast instanceof SQLSelectStatement) { | ||
if (((SQLSelectStatement) ast).getSelect().getQueryBlock().isForUpdate()) { | ||
recognizer = new OracleSelectForUpdateRecognizer(sql, ast); | ||
} | ||
} | ||
}else { | ||
throw new UnsupportedOperationException("Just support MySQL by now!"); | ||
} | ||
return recognizer; | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe some factory class should take care of returning an undo manager. Otherwise you will have this kind of logic at several places.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
io.seata.rm.datasource.undo.*; is a wrong type