-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
SQL Server Wrapper HV000: Token error: 'Incorrect syntax near 'offset' #262
Comments
Hi @glib-0 Thanks for opening! I can reproduce this so I will transfer this issue to the |
It is strange to me, the |
SQL used: |
I think it's because the ORDER BY clause in the wrapper appears to be optional. It's mandatory when you use
If I apply sorting to the table in the Studio, it actually works and returns the data as expected. |
Thanks for that explanation, yes I think that's the reason. |
Bug report
Describe the bug
I'm locally hosting Supabase and have a wrapper for a remote SQL Server 2022 instance. When I try to view the table in the table editor, the connection establishes fine - I can see the request for the row count and response with the correct value, but the request for the actual data returns this error: HV000: Token error: 'Incorrect syntax near 'offset.
Running
select * from private.<table>
returns nothing.To Reproduce
Server=<url>\<instance>,<port>;Database=<dbname>;TrustServerCertificate=true;Integrated Security=false;Encrypt=false;User ID=<user>;Password=<password>;Packet Size=4096;Network Library=dbmssocn;
sa
user, just a user that has only read access.select * from private.<table> limit 100 offset 0;
. Queries withOFFSET
work fine - it's not on an Azure SQL Database, it's just SQL Server 2022 so it should work fine via the wrapper. However, T-SQL doesn't have aLIMIT
keyword. Missed in translation?Expected behavior
The table preview/queries on the table should return data.
Screenshots
System information
The text was updated successfully, but these errors were encountered: