]> git.eshelyaron.com Git - emacs.git/commitdiff
MariaDB and Mysql handle escaped aphostrophes in the same way
authorVincenzo Pupillo <v.pupillo@gmail.com>
Mon, 17 Mar 2025 21:35:23 +0000 (22:35 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sun, 23 Mar 2025 18:10:25 +0000 (19:10 +0100)
* lisp/progmodes/sql.el (sql-mode): MariaDB and Mysql both
handle escaped apostrophes in the same way.  (Bug#77088)

(cherry picked from commit cace07f27dc31091a606a70ae8b957cd5dd7da43)

lisp/progmodes/sql.el

index 8c9d5242ef1b4ac37b052b76aa1a2bca66126dbd..e3970e0ab0a580e9cc56dd58f79e8ce206927cea 100644 (file)
@@ -4082,7 +4082,7 @@ must tell Emacs.  Here's how to do that in your init file:
               (eval
                '(syntax-propertize-rules
                  ;; Handle escaped apostrophes within strings.
-                 ((if (eq sql-product 'mysql)
+                 ((if (member sql-product '(mysql mariadb))
                       "\\\\'"
                     "''")
                   (0