Skip to content

Commit

Permalink
mysql5和mysql8依赖,添加scope=provided
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Nov 21, 2023
1 parent 2cb0975 commit 5e7d77e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @author wang.liang
*/
public class DependsOnException extends Exception {
class DependsOnException extends Exception {

public DependsOnException(String message) {
super(message);
Expand Down
1 change: 1 addition & 0 deletions rm-datasource-mysql5/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql5.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
1 change: 1 addition & 0 deletions rm-datasource-mysql8/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql8.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ protected TableMeta resultSetMetaToSchema(Connection connection, Statement stmt,
* 1. show full columns from xxx from xxx(normal)
* 2. select xxx from xxx where catalog_name like ? and table_name like ?(informationSchema=true)
*/

try (ResultSet rsColumns = dbmd.getColumns(catalogName, schemaName, tableName, "%");
ResultSet rsIndex = dbmd.getIndexInfo(catalogName, schemaName, tableName, false, true);
ResultSet onUpdateColumns = dbmd.getVersionColumns(catalogName, schemaName, tableName)) {
Expand Down

0 comments on commit 5e7d77e

Please sign in to comment.