Fix sending input to SQL when point is not at EOB
* lisp/progmodes/sql.el (sql-send-string): Move point to EOB before sending input to the SQL process. Suggested by Gary Hollis <ghollisjr@gmail.com>. (Bug#69420)
This commit is contained in:
parent
b993c1b275
commit
bb9d81d514
1 changed files with 2 additions and 0 deletions
|
@ -3721,6 +3721,8 @@ prompts (`sql-output-newline-count' is positive). In this case:
|
|||
(save-excursion
|
||||
;; Set product context
|
||||
(with-current-buffer sql-buffer
|
||||
;; Make sure point is at EOB before sending input to SQL.
|
||||
(goto-char (point-max))
|
||||
(when sql-debug-send
|
||||
(message ">>SQL> %S" s))
|
||||
(insert "\n")
|
||||
|
|
Loading…
Add table
Reference in a new issue