From: Alex Schroeder Date: Tue, 24 Aug 1999 10:50:59 +0000 (+0000) Subject: (sql-sybase): use sql-server instead of sql-database. X-Git-Tag: emacs-pretest-21.0.90~7060 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1533eb58ccde1c2375c3b4678827c5f211c6e54c;p=emacs.git (sql-sybase): use sql-server instead of sql-database. --- 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 -;; Maintainer: Alex Schroeder -;; Version: 1.4.6 +;; Author: Alex Schroeder +;; Maintainer: Alex Schroeder +;; 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 ;; . @@ -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))