fix(sql): add databaseType parameter to findStatementAtCursor function
This commit is contained in:
1 parent
1f666f99b3
commit
872569265d
5 files changed
+17
-7
No files matched your search
@@ -19,7 +19,7 @@ test("shared API exposes backend current statement resolution", () => {
|
||||
});
|
||||
|
||||
test("execution target prefers backend current statement resolution", () => {
|
||||
assert.match(executionTargetSource, /api\.findStatementAtCursor\(fullSql, options\.cursorPos\)/);
|
||||
assert.match(executionTargetSource, /api\.findStatementAtCursor\(fullSql, options\.cursorPos, options\.databaseType\)/);
|
||||
assert.doesNotMatch(executionTargetSource, /sqlStatementSplit/);
|
||||
assert.doesNotMatch(executionTargetSource, /return findStatementAtCursor\(fullSql, options\.cursorPos\)/);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user