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

mssql recursive CTE support #960

Open
popobobo512 opened this issue Apr 23, 2024 · 1 comment
Open

mssql recursive CTE support #960

popobobo512 opened this issue Apr 23, 2024 · 1 comment
Labels
api Related to library's API enhancement New feature or request mssql Related to MS SQL Server (MSSQL)

Comments

@popobobo512
Copy link

Im using MSSQL and i am having a incorrect syntax error on my recursive CTE

Kysely playground

Error:
stack: 'Error: Incorrect syntax near \'recursive_menu_tree\'.\n' + ' at RequestTokenHandler.onErrorMessage (webpack-internal:///(rsc)/./node_modules/tedious/lib/token/handler.js:287:21)\n' + ' at Readable.eval (webpack-internal:///(rsc)/./node_modules/tedious/lib/token/token-stream-parser.js:18:33)\n

@igalklebanov
Copy link
Member

igalklebanov commented Apr 23, 2024

Hey 👋

According to this, I don't think we support recursive CTEs the way they're implemented on mssql.

You're getting a SQL error for what seems to be the recursive keyword - it's a postgres thing.

@igalklebanov igalklebanov added enhancement New feature or request api Related to library's API mssql Related to MS SQL Server (MSSQL) labels Apr 23, 2024
@igalklebanov igalklebanov changed the title Incorrect syntax on recursive CTE mssql recursive CTE support Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to library's API enhancement New feature or request mssql Related to MS SQL Server (MSSQL)
Projects
None yet
Development

No branches or pull requests

2 participants