mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 03:26:00 +00:00
trim positions in current query detection
This commit is contained in:
@@ -111,9 +111,9 @@ test('count lines', () => {
|
||||
expect.objectContaining({
|
||||
text: 'SELECT * FROM `table2`',
|
||||
|
||||
startPosition: 23,
|
||||
startLine: 0,
|
||||
startColumn: 23,
|
||||
startPosition: 24,
|
||||
startLine: 1,
|
||||
startColumn: 0,
|
||||
|
||||
endPosition: 46,
|
||||
endLine: 1,
|
||||
@@ -144,9 +144,9 @@ test('count lines with flush', () => {
|
||||
expect.objectContaining({
|
||||
text: 'SELECT * FROM `table2`',
|
||||
|
||||
startPosition: 23,
|
||||
startLine: 0,
|
||||
startColumn: 23,
|
||||
startPosition: 24,
|
||||
startLine: 1,
|
||||
startColumn: 0,
|
||||
|
||||
endPosition: 46,
|
||||
endLine: 1,
|
||||
|
||||
Reference in New Issue
Block a user