emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/emacsql 7c774ffe12 248/427: Improve MySQL error parsing.


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 7c774ffe12 248/427: Improve MySQL error parsing.
Date: Tue, 13 Dec 2022 02:59:48 -0500 (EST)

branch: elpa/emacsql
commit 7c774ffe129f81b4f87aee2783ce996ca0e71e00
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Improve MySQL error parsing.
---
 emacsql-mysql.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/emacsql-mysql.el b/emacsql-mysql.el
index 6f228ba83f..0811a32320 100644
--- a/emacsql-mysql.el
+++ b/emacsql-mysql.el
@@ -55,9 +55,9 @@
     (let ((standard-input (current-buffer)))
       (setf (point) (point-min))
       (when (looking-at "ERROR")
-        (let ((beg (line-beginning-position))
-              (end (line-end-position)))
-          (signal 'emacsql-error (list (buffer-substring beg end)))))
+        (search-forward ": ")
+        (signal 'emacsql-error
+                (list (buffer-substring (point) (line-end-position)))))
       (cl-loop until (looking-at emacsql-mysql-sentinel)
                collect (read) into row
                when (looking-at "\n")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]