aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/sql.el14
1 files changed, 12 insertions, 2 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index b3a52062777..e689800739a 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -4,7 +4,7 @@
4 4
5;; Author: Alex Schroeder <alex@gnu.org> 5;; Author: Alex Schroeder <alex@gnu.org>
6;; Maintainer: Alex Schroeder <alex@gnu.org> 6;; Maintainer: Alex Schroeder <alex@gnu.org>
7;; Version: 1.6.3 7;; Version: 1.6.5
8;; Keywords: comm languages processes 8;; Keywords: comm languages processes
9;; URL: http://www.emacswiki.org/cgi-bin/wiki.pl?SqlMode 9;; URL: http://www.emacswiki.org/cgi-bin/wiki.pl?SqlMode
10 10
@@ -531,6 +531,8 @@ Based on `comint-mode-map'.")
531 (modify-syntax-entry ?\f "> b" table) 531 (modify-syntax-entry ?\f "> b" table)
532 ;; single quotes (') quotes delimit strings 532 ;; single quotes (') quotes delimit strings
533 (modify-syntax-entry ?' "\"" table) 533 (modify-syntax-entry ?' "\"" table)
534 ;; backslash is no escape character
535 (modify-syntax-entry ?\\ "." table)
534 table) 536 table)
535 "Syntax table used in `sql-mode' and `sql-interactive-mode'.") 537 "Syntax table used in `sql-mode' and `sql-interactive-mode'.")
536 538
@@ -1115,7 +1117,15 @@ determine where the strings should be sent to. You can set the
1115value of `sql-buffer' using \\[sql-set-sqli-buffer]. 1117value of `sql-buffer' using \\[sql-set-sqli-buffer].
1116 1118
1117For information on how to create multiple SQLi buffers, see 1119For information on how to create multiple SQLi buffers, see
1118`sql-interactive-mode'." 1120`sql-interactive-mode'.
1121
1122Note that SQL doesn't have an escape character unless you specify
1123one. If you specify backslash as escape character in SQL,
1124you must tell Emacs. Here's how to do that in your `~/.emacs' file:
1125
1126\(add-hook 'sql-mode-hook
1127 (lambda ()
1128 (modify-syntax-entry ?\\\\ \".\" sql-mode-syntax-table)))"
1119 (interactive) 1129 (interactive)
1120 (kill-all-local-variables) 1130 (kill-all-local-variables)
1121 (setq major-mode 'sql-mode) 1131 (setq major-mode 'sql-mode)