diff options
| -rw-r--r-- | lisp/progmodes/sql.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index ace512ea075..990576667ad 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el | |||
| @@ -1028,7 +1028,10 @@ This function is used for `comint-input-sender' if using `sql-oracle' on NT." | |||
| 1028 | nil nil nil sql-placeholder-history) | 1028 | nil nil nil sql-placeholder-history) |
| 1029 | t t string))) | 1029 | t t string))) |
| 1030 | (comint-send-string proc string) | 1030 | (comint-send-string proc string) |
| 1031 | (comint-send-string proc "\n")) | 1031 | (if comint-input-sender-no-newline |
| 1032 | (if (not (string-equal input "")) | ||
| 1033 | (process-send-eof)) | ||
| 1034 | (comint-send-string proc "\n"))) | ||
| 1032 | 1035 | ||
| 1033 | ;; Using DB2 interactively, newlines must be escaped with " \". | 1036 | ;; Using DB2 interactively, newlines must be escaped with " \". |
| 1034 | ;; The space before the backslash is relevant. | 1037 | ;; The space before the backslash is relevant. |
| @@ -1046,7 +1049,10 @@ Every newline in STRING will be preceded with a space and a backslash." | |||
| 1046 | (setq start me)) | 1049 | (setq start me)) |
| 1047 | (setq result (concat result (substring string start))) | 1050 | (setq result (concat result (substring string start))) |
| 1048 | (comint-send-string proc result) | 1051 | (comint-send-string proc result) |
| 1049 | (comint-send-string proc "\n"))) | 1052 | (if comint-input-sender-no-newline |
| 1053 | (if (not (string-equal input "")) | ||
| 1054 | (process-send-eof)) | ||
| 1055 | (comint-send-string proc "\n")))) | ||
| 1050 | 1056 | ||
| 1051 | 1057 | ||
| 1052 | 1058 | ||