You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/03/22 23:10:41 UTC

[GitHub] [shardingsphere] jiang-wei commented on issue #9774: no viable alternative error for Postgresql sequence

jiang-wei commented on issue #9774:
URL: https://github.com/apache/shardingsphere/issues/9774#issuecomment-804455164


   More details:
   
   ```
   	@Test
   	public void contextLoads() throws SQLException {
   	    Connection conn = dataSource.getConnection();
   	    Statement stmt = conn.createStatement();
   	    stmt.execute("select 1");
   	    stmt.execute("create sequence foo");
   	}
   ```
   logs
   ```
   2021-03-22 19:09:21.052  INFO 53223 --- [           main] ShardingSphere-SQL                       : Logic SQL: select 1
   
   2021-03-22 19:09:21.053  INFO 53223 --- [           main] ShardingSphere-SQL                       : SQLStatement: PostgreSQLSelectStatement(limit=Optional.empty, lock=Optional.empty)
   
   2021-03-22 19:09:21.053  INFO 53223 --- [           main] ShardingSphere-SQL                       : Actual SQL: ds0 ::: select 1
   
   line 1:7 no viable alternative at input 'createsequence'
   ```


-- 
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:
users@infra.apache.org