1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00

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:
Eli Zaretskii 2024-04-18 11:53:26 +03:00
parent b993c1b275
commit bb9d81d514

View File

@ -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")