diff options
author | Gerd Moellmann <gerd@gnu.org> | 2000-10-05 15:26:13 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2000-10-05 15:26:13 +0000 |
commit | 542c6552716722789edf64861e78d5313a218937 (patch) | |
tree | bd92063b038b99c207d11d7497108993640ee953 /lisp/progmodes/sql.el | |
parent | 88b4c77e1e6a5e1148a1a9fa1dd1c5fb50d189f8 (diff) | |
download | emacs-542c6552716722789edf64861e78d5313a218937.tar.gz |
(sql-mysql-options): New variable.
(sql-mysql): Use it.
Diffstat (limited to 'lisp/progmodes/sql.el')
-rw-r--r-- | lisp/progmodes/sql.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 7a57ff485a9..09bd5957181 100644 --- a/lisp/progmodes/sql.el +++ b/lisp/progmodes/sql.el @@ -4,7 +4,7 @@ ;; Author: Alex Schroeder <alex@gnu.org> ;; Maintainer: Alex Schroeder <alex@gnu.org> -;; Version: 1.4.21 +;; Version: 1.4.22 ;; Keywords: comm languages processes ;; This file is part of GNU Emacs. @@ -272,6 +272,12 @@ The program can also specify a TCP connection. See `make-comint'." :type 'file :group 'SQL) +(defcustom sql-mysql-options nil + "*List of additional options for `sql-mysql-program'." + :type '(repeat string) + :version "20.8" + :group 'SQL) + ;; Customisation for Solid (defcustom sql-solid-program "solsql" @@ -1384,6 +1390,8 @@ The default comes from `process-coding-system-alist' and (setq params (append (list (concat "--password=" sql-password)) params))) (if (not (string= "" sql-user)) (setq params (append (list (concat "--user=" sql-user)) params))) + (if (not (null sql-mysql-options)) + (setq params (append sql-mysql-options params))) (set-buffer (apply 'make-comint "SQL" sql-mysql-program nil params))) (setq sql-prompt-regexp "^mysql>") |