1 new commit in prog-modes:
https://bitbucket.org/xemacs/prog-modes/commits/9f912cfbbc93/
Changeset: 9f912cfbbc93
User: kehoea
Date: 2017-11-26 09:44:25+00:00
Summary: Update, correct mysql and postgres prompt regexps, sql.el
ChangeLog addition:
2017-11-26 Aidan Kehoe <kehoea(a)parhasard.net>
* sql.el (sql-product-alist):
Update the mysql prompt regexp to reflect that many mysql installs
are MariaDB databases these days.
Make the postgres prompt regexp a bit more reasonable, so C-a
doesn't bring you to a greater-than operator in the SQL typed.
Affected #: 2 files
diff -r 22e1b0eb6d2948b7873b73e3751c0b310b7ae75b -r
9f912cfbbc9388080d9daefd26de74f15fe2d0b0 ChangeLog
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2017-11-26 Aidan Kehoe <kehoea(a)parhasard.net>
+
+ * sql.el (sql-product-alist):
+ Update the mysql prompt regexp to reflect that many mysql installs
+ are MariaDB databases these days.
+ Make the postgres prompt regexp a bit more reasonable, so C-a
+ doesn't bring you to a greater-than operator in the SQL typed.
+
2015-10-12 Norbert Koch <viteno(a)xemacs.org>
* Makefile (VERSION): XEmacs package 2.32 released.
diff -r 22e1b0eb6d2948b7873b73e3751c0b310b7ae75b -r
9f912cfbbc9388080d9daefd26de74f15fe2d0b0 sql.el
--- a/sql.el
+++ b/sql.el
@@ -314,7 +314,7 @@
:font-lock sql-mode-mysql-font-lock-keywords
:sqli-login (user password database server)
:sqli-connect sql-connect-mysql
- :sqli-prompt-regexp "^mysql> "
+ :sqli-prompt-regexp "^\\(mysql\\|MariaDB \\[[^]]*\\]\\)> "
:sqli-prompt-length 6)
(oracle
:font-lock sql-mode-oracle-font-lock-keywords
@@ -327,7 +327,7 @@
:font-lock sql-mode-postgres-font-lock-keywords
:sqli-login (user database server)
:sqli-connect sql-connect-postgres
- :sqli-prompt-regexp "^.*[#>] *"
+ :sqli-prompt-regexp "^[^>#]*[-=^!*'\"$>][#>] *"
:sqli-prompt-length 5)
(solid
:font-lock sql-mode-solid-font-lock-keywords
Repository URL:
https://bitbucket.org/xemacs/prog-modes/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.