peilinqian opened a new issue, #18432:
URL: https://github.com/apache/shardingsphere/issues/18432

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub 
issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere 
Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response anymore and we cannot reproduce it on current information, we 
will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   we find java version: java8, full_version=1.8.0_282
   ShardingSphere-5.1.2-SNAPSHOT
   Commit ID: 952c1feacb26bc03ea4ea14d9f82b0d5777732c2
   Commit Message: Update shasum arguments in Release documents (#18344)
   Branch: master
   Build time: 2022-06-13T19:07:26+0000
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   create successfully
   
   ### Actual behavior
   probabilistic failure
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   `package view;
   
   import java.sql.Connection;
   import java.sql.DriverManager;
   import java.sql.ResultSet;
   import java.sql.Statement;
   
   public class ViewTest01 {
   
        public static void main(String[] args) throws Exception {
                Connection connection = 
DriverManager.getConnection("jdbc:opengauss://7.212.123.28:11000/sharding_db",
                                "sharding", "sharding");
                Statement stmt = null;
                stmt = connection.createStatement();
                int rc = stmt.executeUpdate(
                                "drop table if exists test cascade;CREATE TABLE 
test(id int, aa varchar(10) ,id2 varchar(10));");
                System.out.println("createresult = " + rc);
                int createview = stmt.executeUpdate("create view test_view as 
select aa,id2 from test where id>80");
                System.out.println("insertresult = " + createview);
                ResultSet resultSet = stmt.executeQuery("select * from 
test_view");
                if (resultSet.next()) {
                        System.out.println(resultSet.getString(0) + 
resultSet.getString(1));
                } else {
                        System.out.println("查询结果为空");
                }
                stmt.close();
                connection.close();
        }
   }`
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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.

To unsubscribe, e-mail: 
notifications-unsubscr...@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to