-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '2.x' into feature_support_ipv6
- Loading branch information
Showing
53 changed files
with
2,382 additions
and
70 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
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
27 changes: 27 additions & 0 deletions
27
core/src/main/java/io/seata/core/store/db/sql/lock/PolarDBXLockStoreSql.java
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,27 @@ | ||
/* | ||
* Copyright 1999-2019 Seata.io Group. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.seata.core.store.db.sql.lock; | ||
|
||
import io.seata.common.loader.LoadLevel; | ||
|
||
/** | ||
* Database lock store for PolarDB-X | ||
* | ||
* @author hsien999 | ||
*/ | ||
@LoadLevel(name = "polardb-x") | ||
public class PolarDBXLockStoreSql extends MysqlLockStoreSql { | ||
} |
27 changes: 27 additions & 0 deletions
27
core/src/main/java/io/seata/core/store/db/sql/log/PolarDBXLogStoreSqls.java
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,27 @@ | ||
/* | ||
* Copyright 1999-2019 Seata.io Group. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.seata.core.store.db.sql.log; | ||
|
||
import io.seata.common.loader.LoadLevel; | ||
|
||
/** | ||
* Database log store for PolarDB-X | ||
* | ||
* @author hsien999 | ||
*/ | ||
@LoadLevel(name = "polardb-x") | ||
public class PolarDBXLogStoreSqls extends MysqlLogStoreSqls { | ||
} |
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
37 changes: 37 additions & 0 deletions
37
rm-datasource/src/main/java/io/seata/rm/datasource/exec/polardbx/PolarDBXInsertExecutor.java
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,37 @@ | ||
/* | ||
* Copyright 1999-2019 Seata.io Group. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.seata.rm.datasource.exec.polardbx; | ||
|
||
import io.seata.common.loader.LoadLevel; | ||
import io.seata.common.loader.Scope; | ||
import io.seata.rm.datasource.StatementProxy; | ||
import io.seata.rm.datasource.exec.StatementCallback; | ||
import io.seata.rm.datasource.exec.mysql.MySQLInsertExecutor; | ||
import io.seata.sqlparser.SQLRecognizer; | ||
import io.seata.sqlparser.util.JdbcConstants; | ||
|
||
/** | ||
* Insert executor for PolarDB-X | ||
* | ||
* @author hsien999 | ||
*/ | ||
@LoadLevel(name = JdbcConstants.POLARDBX, scope = Scope.PROTOTYPE) | ||
public class PolarDBXInsertExecutor extends MySQLInsertExecutor { | ||
public PolarDBXInsertExecutor(StatementProxy statementProxy, StatementCallback statementCallback, | ||
SQLRecognizer sqlRecognizer) { | ||
super(statementProxy, statementCallback, sqlRecognizer); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...in/java/io/seata/rm/datasource/exec/polardbx/PolarDBXInsertOnDuplicateUpdateExecutor.java
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,37 @@ | ||
/* | ||
* Copyright 1999-2019 Seata.io Group. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.seata.rm.datasource.exec.polardbx; | ||
|
||
import io.seata.common.loader.LoadLevel; | ||
import io.seata.common.loader.Scope; | ||
import io.seata.rm.datasource.StatementProxy; | ||
import io.seata.rm.datasource.exec.StatementCallback; | ||
import io.seata.rm.datasource.exec.mysql.MySQLInsertOnDuplicateUpdateExecutor; | ||
import io.seata.sqlparser.SQLRecognizer; | ||
import io.seata.sqlparser.util.JdbcConstants; | ||
|
||
/** | ||
* Insert on duplicated update executor for PolarDB-X | ||
* | ||
* @author hsien999 | ||
*/ | ||
@LoadLevel(name = JdbcConstants.POLARDBX, scope = Scope.PROTOTYPE) | ||
public class PolarDBXInsertOnDuplicateUpdateExecutor extends MySQLInsertOnDuplicateUpdateExecutor { | ||
public PolarDBXInsertOnDuplicateUpdateExecutor(StatementProxy statementProxy, StatementCallback statementCallback, | ||
SQLRecognizer sqlRecognizer) { | ||
super(statementProxy, statementCallback, sqlRecognizer); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...source/src/main/java/io/seata/rm/datasource/exec/polardbx/PolarDBXUpdateJoinExecutor.java
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,36 @@ | ||
/* | ||
* Copyright 1999-2019 Seata.io Group. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.seata.rm.datasource.exec.polardbx; | ||
|
||
import java.sql.Statement; | ||
|
||
import io.seata.rm.datasource.StatementProxy; | ||
import io.seata.rm.datasource.exec.StatementCallback; | ||
import io.seata.rm.datasource.exec.mysql.MySQLUpdateJoinExecutor; | ||
import io.seata.sqlparser.SQLRecognizer; | ||
|
||
/** | ||
* Update join executor for PolarDB-X | ||
* | ||
* @author hsien999 | ||
*/ | ||
public class PolarDBXUpdateJoinExecutor<T, S extends Statement> extends MySQLUpdateJoinExecutor<T, S> { | ||
public PolarDBXUpdateJoinExecutor(StatementProxy<S> statementProxy, StatementCallback<T, S> statementCallback, | ||
SQLRecognizer sqlRecognizer) { | ||
super(statementProxy, statementCallback, sqlRecognizer); | ||
this.isLowerSupportGroupByPksVersion = false; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...urce/src/main/java/io/seata/rm/datasource/sql/handler/polardbx/PolarDBXEscapeHandler.java
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,29 @@ | ||
/* | ||
* Copyright 1999-2019 Seata.io Group. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package io.seata.rm.datasource.sql.handler.polardbx; | ||
|
||
import io.seata.common.loader.LoadLevel; | ||
import io.seata.rm.datasource.sql.handler.mysql.MySQLEscapeHandler; | ||
import io.seata.sqlparser.util.JdbcConstants; | ||
|
||
/** | ||
* Escape handler for PolarDB-X | ||
* | ||
* @author hsien999 | ||
*/ | ||
@LoadLevel(name = JdbcConstants.POLARDBX) | ||
public class PolarDBXEscapeHandler extends MySQLEscapeHandler { | ||
} |
Oops, something went wrong.