-
Notifications
You must be signed in to change notification settings - Fork 10
Fix incorrect default param types for mssql, oracle, and sqlite #87
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -148,7 +148,8 @@ describe('Regression tests', () => { | |
| { strict: false, dialect: 'mssql' as Dialect }, | ||
| ); | ||
| result.forEach((res) => { | ||
| expect(res.parameters.length).to.equal(0); | ||
| // :: cast syntax should not produce colon-prefixed parameters | ||
| expect(res.parameters.every((param) => !param.startsWith(':'))).to.equal(true); | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Feels like can rework the this test to then only do However, similar to above, would be good to think about how we should handle these parameters here. |
||
| }); | ||
| }); | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a bug to me, since they're not parameters that the user would need to fill in. We can at least detect variables within a function/body by checking if the preceding token is
DECLARE, though I'm a bit of a loss for dealing with function parameters.