Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F852 Top-level 'order by clause' in views #109

Closed
wants to merge 1 commit into from

Conversation

makssent
Copy link

@makssent makssent commented Sep 5, 2024

Fixes #108.

request: CREATE OR ALTER VIEW F852(ID, namecompany) AS SELECT id, namecompany FROM company ORDER BY typeproduct

err message:
You have an error in your SQL syntax: CREATE OR ALTER VIEW F852(ID namecompany) AS SELECT id namecompany FROM company ORDER BY typeproduct no viable alternative at input 'CREATEORALTERVIEW' at line 1 position 17 near @317:20='VIEW'<69>1:17

new err message:

class org.apache.shardingsphere.sql.parser.sql.common.segment.dml.order.OrderBySegment cannot be cast to class org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement (org.apache.shardingsphere.sql.parser.sql.common.segment.dml.order.OrderBySegment and org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement are in unnamed module of loader 'app')

@makssent makssent closed this Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

F852 Top-level 'order by clause' in views
1 participant