comparison lisp/progmodes/sql.el @ 42799:2f56e7fc793a

(sql-escape-newlines-and-send) (sql-query-placeholders-and-send): Fix previous change.
author Richard M. Stallman <rms@gnu.org>
date Thu, 17 Jan 2002 01:39:49 +0000
parents 4664fcfde396
children 893d44670df9
comparison
equal deleted inserted replaced
42798:dfa4a2991178 42799:2f56e7fc793a
1027 (format "Enter value for %s: " (match-string 1 string)) 1027 (format "Enter value for %s: " (match-string 1 string))
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 (if comint-input-sender-no-newline 1031 (if comint-input-sender-no-newline
1032 (if (not (string-equal input "")) 1032 (if (not (string-equal string ""))
1033 (process-send-eof)) 1033 (process-send-eof))
1034 (comint-send-string proc "\n"))) 1034 (comint-send-string proc "\n")))
1035 1035
1036 ;; Using DB2 interactively, newlines must be escaped with " \". 1036 ;; Using DB2 interactively, newlines must be escaped with " \".
1037 ;; The space before the backslash is relevant. 1037 ;; The space before the backslash is relevant.
1048 (setq result (concat result (substring string start mb) " \\\n"))) 1048 (setq result (concat result (substring string start mb) " \\\n")))
1049 (setq start me)) 1049 (setq start me))
1050 (setq result (concat result (substring string start))) 1050 (setq result (concat result (substring string start)))
1051 (comint-send-string proc result) 1051 (comint-send-string proc result)
1052 (if comint-input-sender-no-newline 1052 (if comint-input-sender-no-newline
1053 (if (not (string-equal input "")) 1053 (if (not (string-equal string ""))
1054 (process-send-eof)) 1054 (process-send-eof))
1055 (comint-send-string proc "\n")))) 1055 (comint-send-string proc "\n"))))
1056 1056
1057 1057
1058 1058