Function: sql-set-product

sql-set-product is an interactive and byte-compiled function defined in sql.el.gz.

Signature

(sql-set-product PRODUCT)

Documentation

Set sql-product to PRODUCT and enable appropriate highlighting.

Key Bindings

Aliases

sql-set-dialect

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sql.el.gz
(defun sql-set-product (product)
  "Set `sql-product' to PRODUCT and enable appropriate highlighting."
  (interactive
   (list (sql-read-product "SQL product")))
  (if (stringp product) (setq product (intern product)))
  (when (not (assoc product sql-product-alist))
    (user-error "SQL product %s is not supported; treated as ANSI" product)
    (setq product 'ansi))

  ;; Save product setting and fontify.
  (setq sql-product product)
  (sql-highlight-product))