File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 34
34
" Get top position of batch statement(s) seperator `ejc-sql-separator' .
35
35
Upper position of this batch statement(s)."
36
36
(save-excursion
37
+ (when (and (characterp (char-after ))
38
+ (or (equal (string (char-after )) " " )
39
+ (equal (string (char-after )) " \n " )))
40
+ (forward-char 1 ))
37
41
(if (re-search-backward (ejc-sql-separator-re) nil t nil )
38
42
(re-search-forward (ejc-sql-separator-re) nil t nil )
39
43
(beginning-of-buffer ))
Original file line number Diff line number Diff line change 116
116
23 " SELECT * FROM table / SELECT * FROM user" )))
117
117
(should (equal '(4 23 )
118
118
(ejc-test:get-boundaries 3 " \n /\n SELECT * FROM table" )))
119
- (should (equal '(1 21 )
119
+ (should (equal '(1 22 )
120
120
(ejc-test:get-boundaries 1 " \n SELECT * FROM table\n /" )))
121
121
(should (equal '(26 44 )
122
122
(ejc-test:get-boundaries 26 (concat " \n "
123
123
" SELECT * FROM table\n "
124
124
" / \n "
125
125
" SELECT * FROM user" ))))
126
- (should (equal '(1 23 )
126
+ (should (equal '(1 26 )
127
127
(ejc-test:get-boundaries 1 " \n SELECT * FROM table\n /" )))
128
128
(should (equal '(1 23 )
129
129
(ejc-test:get-boundaries 1 " \n SELECT * FROM table\n / " )))
You can’t perform that action at this time.
0 commit comments