gywndi opened a new issue #7701:
URL: https://github.com/apache/shardingsphere/issues/7701


   ## Bug Report
   Hi, I'm updagraing ShardingSphere V3 to V4, but I've got some problem if I 
execute single jar file.
   ```bash
   java -jar target/my-tset-0.0.1-jar-with-dependencies.jar
   >>delete from uldra limit 10000
   >>java.lang.UnsupportedOperationException: Cannot support database type 
'MySQL'
   ```
   You can see the delete query and result error above.
   
   ### Which version of ShardingSphere did you use?
   4.1.1
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   
   Maven project and you can see the pom.xml as below.
   I think, some resources are not included. And I had no problem if I use 
version 3.1.0.
   (In fact this error only happened if I execute with single jar file.)
   
   Is there anything I had missed?
   
   ```xml
   <project xmlns="http://maven.apache.org/POM/4.0.0";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
        <modelVersion>4.0.0</modelVersion>
        <groupId>net.test</groupId>
        <artifactId>my-test</artifactId>
        <version>0.0.1</version>
        <name>uldra-sphere</name>
        <build>
                <plugins>
                        <plugin>
                                <groupId>org.apache.maven.plugins</groupId>
                                <artifactId>maven-compiler-plugin</artifactId>
                                <version>3.6.1</version>
                                <configuration>
                                        <source>1.8</source>
                                        <target>1.8</target>
                                </configuration>
                        </plugin>
                        <plugin>
                                <artifactId>maven-assembly-plugin</artifactId>
                                <executions>
                                        <execution>
                                                <phase>package</phase>
                                                <goals>
                                                        <goal>single</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                        <archive>
                                                <manifest>
                                                        
<mainClass>net.test.Main</mainClass>
                                                </manifest>
                                        </archive>
                                        <descriptorRefs>
                                                
<descriptorRef>jar-with-dependencies</descriptorRef>
                                        </descriptorRefs>
                                </configuration>
                        </plugin>
                </plugins>
        </build>
   
        <dependencies>
   
                <dependency>
                        <groupId>org.apache.shardingsphere</groupId>
                        <artifactId>sharding-jdbc-core</artifactId>
                        <version>4.1.1</version>
                </dependency>
   
                <dependency>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>commons-dbcp2</artifactId>
                        <version>2.1</version>
                </dependency>
   
                <dependency>
                        <groupId>mysql</groupId>
                        <artifactId>mysql-connector-java</artifactId>
                        <version>5.1.48</version>
                </dependency>
   
        </dependencies>
   </project>
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to