summaryrefslogtreecommitdiff
path: root/lisp/progmodes/sql.el
diff options
context:
space:
mode:
authorAlex Schroeder <alex@gnu.org>1999-08-24 10:50:59 +0000
committerAlex Schroeder <alex@gnu.org>1999-08-24 10:50:59 +0000
commit1533eb58ccde1c2375c3b4678827c5f211c6e54c (patch)
tree4df16255d79511e9cc930ece02ac33b5e7a0e772 /lisp/progmodes/sql.el
parent7db6139adb211779fe8e018e1f28f20026fb2709 (diff)
downloademacs-1533eb58ccde1c2375c3b4678827c5f211c6e54c.tar.gz
(sql-sybase): use sql-server instead of sql-database.
Diffstat (limited to 'lisp/progmodes/sql.el')
-rw-r--r--lisp/progmodes/sql.el31
1 files changed, 13 insertions, 18 deletions
diff --git a/lisp/progmodes/sql.el b/lisp/progmodes/sql.el
index da527250471..096628944f4 100644
--- a/lisp/progmodes/sql.el
+++ b/lisp/progmodes/sql.el
@@ -2,9 +2,9 @@
;; Copyright (C) 1998, 1999 Free Software Foundation, Inc.
-;; Author: Alex Schroeder <a.schroeder@bsiag.ch>
-;; Maintainer: Alex Schroeder <a.schroeder@bsiag.ch>
-;; Version: 1.4.6
+;; Author: Alex Schroeder <alex@gnu.org>
+;; Maintainer: Alex Schroeder <alex@gnu.org>
+;; Version: 1.4.7
;; Keywords: comm languages processes
;; This file is part of GNU Emacs.
@@ -27,9 +27,9 @@
;;; Commentary:
;; Please send bug reports and bug fixes to the mailing list at
-;; sql.el@gnu.org (or sql.el@bsiag.com). If you want to subscribe to
-;; the mailing list, send mail to sql.el-request@gnu.org with
-;; `subscribe sql.el FIRSTNAME LASTNAME' in the subject line.
+;; sql.el@gnu.org. If you want to subscribe to the mailing list, send
+;; mail to sql.el-request@gnu.org with 'subscribe sql.el FIRSTNAME
+;; LASTNAME' in the mail body.
;; You can get the latest version of this file from my homepage
;; <URL:http://www.geocities.com/TimesSquare/6120/emacs.html>.
@@ -167,12 +167,6 @@ exiting the SQL interpreter in an SQLi buffer will write the input
history to the specified file. Starting a new process in a SQLi buffer
will read the input history from the specified file.
-You have to set this variable if you want the history of your commands
-saved from one Emacs session to the next. If this variable is set,
-exiting the SQL interpreter in an SQLi buffer will write the input
-history to the specified file. Starting a new process in a SQLi buffer
-will read the input history from the specified file.
-
This is used to locally set `comint-input-ring-file-name' when reading
or writing the input history."
:type '(choice (const :tag "none" nil)
@@ -711,6 +705,7 @@ function like this: (sql-get-login 'user 'password 'database)."
(setq sql-database
(read-from-minibuffer "Database: " sql-database nil nil
sql-database-history))))
+
(defun sql-set-sqli-buffer ()
"Set the SQLi buffer SQL strings are sent to.
@@ -1083,7 +1078,7 @@ If buffer exists and a process is running, just switch to buffer
`*SQL*'.
Interpreter used comes from variable `sql-sybase-program'. Login uses
-the variables `sql-user', `sql-password', and `sql-database' as
+the variables `sql-user', `sql-password', and `sql-server' as
defaults, if set.
The buffer is put in sql-interactive-mode, giving commands for sending
@@ -1100,15 +1095,15 @@ The default comes from `process-coding-system-alist' and
(interactive)
(if (comint-check-proc "*SQL*")
(pop-to-buffer "*SQL*")
- (sql-get-login 'user 'password 'database)
+ (sql-get-login 'user 'password 'server)
(message "Login...")
;; Put all parameters to the program (if defined) in a list and call
;; make-comint.
(let ((params '("-w" "2048" "-n")))
- ;; I had a zillion versions of this using nconc and mapcar,
- ;; mixtures of eval, list and quotes -- you have been warned.
- (if (not (string= "" sql-database))
- (setq params (append (list "-S" sql-database) params)))
+ ;; There is no way to specify the database via command line
+ ;; parameters. The -S option specifies the server.
+ (if (not (string= "" sql-server))
+ (setq params (append (list "-S" sql-server) params)))
(if (not (string= "" sql-password))
(setq params (append (list "-P" sql-password) params)))
(if (not (string= "" sql-user))