diff options
| author | Gerd Moellmann | 2000-10-18 14:38:55 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-10-18 14:38:55 +0000 |
| commit | 9b5360aa71faa737e238a264f8e4ef1739efc672 (patch) | |
| tree | 8eb71c299ca744b94048d0b8b9d3095fba69962f | |
| parent | 3556c6dd2787df747fe6f3ddb78b5599930beeac (diff) | |
| download | emacs-9b5360aa71faa737e238a264f8e4ef1739efc672.tar.gz emacs-9b5360aa71faa737e238a264f8e4ef1739efc672.zip | |
(sql-sybase-options): New option.
(sql-sybase): Use it. Add sql-database to the list of parameters
provided for login. The options -w 2048 -n are not used any more.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/progmodes/sql.el | 21 |
2 files changed, 20 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 87c2985e486..7eb8fb3b235 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,12 @@ | |||
| 3 | * startup.el (fancy-splash-screens): Set buffer-undo-list to t. | 3 | * startup.el (fancy-splash-screens): Set buffer-undo-list to t. |
| 4 | Use fancy-splash-delay. | 4 | Use fancy-splash-delay. |
| 5 | 5 | ||
| 6 | 2000-10-18 Alex Schroeder <alex@gnu.org> | ||
| 7 | |||
| 8 | * progmodes/sql.el (sql-sybase-options): New option. | ||
| 9 | (sql-sybase): Use it. Add sql-database to the list of parameters | ||
| 10 | provided for login. The options -w 2048 -n are not used any more. | ||
| 11 | |||
| 6 | 2000-10-18 Vinicius Jose Latorre <vinicius@cpqd.com.br> | 12 | 2000-10-18 Vinicius Jose Latorre <vinicius@cpqd.com.br> |
| 7 | 13 | ||
| 8 | * ps-print.el: Internal variable changes to defcustom, | 14 | * ps-print.el: Internal variable changes to defcustom, |
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el index 09bd5957181..70b053899ac 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.4.22 | 7 | ;; Version: 1.4.23 |
| 8 | ;; Keywords: comm languages processes | 8 | ;; Keywords: comm languages processes |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| @@ -300,6 +300,13 @@ The program can also specify a TCP connection. See `make-comint'." | |||
| 300 | :type 'file | 300 | :type 'file |
| 301 | :group 'SQL) | 301 | :group 'SQL) |
| 302 | 302 | ||
| 303 | (defcustom sql-sybase-options nil | ||
| 304 | "*List of additional options for `sql-sybase-program'. | ||
| 305 | Some versions of isql might require the -n option in order to work." | ||
| 306 | :type '(repeat string) | ||
| 307 | :version "20.8" | ||
| 308 | :group 'SQL) | ||
| 309 | |||
| 303 | ;; Customisation for Informix | 310 | ;; Customisation for Informix |
| 304 | 311 | ||
| 305 | (defcustom sql-informix-program "dbaccess" | 312 | (defcustom sql-informix-program "dbaccess" |
| @@ -1267,8 +1274,8 @@ If buffer exists and a process is running, just switch to buffer | |||
| 1267 | `*SQL*'. | 1274 | `*SQL*'. |
| 1268 | 1275 | ||
| 1269 | Interpreter used comes from variable `sql-sybase-program'. Login uses | 1276 | Interpreter used comes from variable `sql-sybase-program'. Login uses |
| 1270 | the variables `sql-user', `sql-password', and `sql-server' as | 1277 | the variables `sql-server', `sql-user', `sql-password', and |
| 1271 | defaults, if set. | 1278 | `sql-database' as defaults, if set. |
| 1272 | 1279 | ||
| 1273 | The buffer is put in sql-interactive-mode, giving commands for sending | 1280 | The buffer is put in sql-interactive-mode, giving commands for sending |
| 1274 | input. See `sql-interactive-mode'. | 1281 | input. See `sql-interactive-mode'. |
| @@ -1284,15 +1291,15 @@ The default comes from `process-coding-system-alist' and | |||
| 1284 | (interactive) | 1291 | (interactive) |
| 1285 | (if (comint-check-proc "*SQL*") | 1292 | (if (comint-check-proc "*SQL*") |
| 1286 | (pop-to-buffer "*SQL*") | 1293 | (pop-to-buffer "*SQL*") |
| 1287 | (sql-get-login 'user 'password 'server) | 1294 | (sql-get-login 'server 'user 'password 'server) |
| 1288 | (message "Login...") | 1295 | (message "Login...") |
| 1289 | ;; Put all parameters to the program (if defined) in a list and call | 1296 | ;; Put all parameters to the program (if defined) in a list and call |
| 1290 | ;; make-comint. | 1297 | ;; make-comint. |
| 1291 | (let ((params '("-w" "2048" "-n"))) | 1298 | (let ((params sql-sybase-options)) |
| 1292 | ;; There is no way to specify the database via command line | ||
| 1293 | ;; parameters. The -S option specifies the server. | ||
| 1294 | (if (not (string= "" sql-server)) | 1299 | (if (not (string= "" sql-server)) |
| 1295 | (setq params (append (list "-S" sql-server) params))) | 1300 | (setq params (append (list "-S" sql-server) params))) |
| 1301 | (if (not (string= "" sql-database)) | ||
| 1302 | (setq params (append (list "-D" sql-database) params))) | ||
| 1296 | (if (not (string= "" sql-password)) | 1303 | (if (not (string= "" sql-password)) |
| 1297 | (setq params (append (list "-P" sql-password) params))) | 1304 | (setq params (append (list "-P" sql-password) params))) |
| 1298 | (if (not (string= "" sql-user)) | 1305 | (if (not (string= "" sql-user)) |