Display dialog on non-query sql errors

This commit is contained in:
David Botton 2021-11-04 17:24:26 -04:00
parent a0d4d1fb8d
commit 4019936821

View file

@ -95,9 +95,14 @@
'(("Non-Query" :db-query))
(lambda (results)
(when results
(sqlite:execute-non-query (db-connection app)
(cadr (assoc :db-query results)))
(results-window app "select changes()" :title (cadr (assoc :db-query results)))))
(format t "handle~%")
(handler-case
(progn
(sqlite:execute-non-query (db-connection app)
(cadr (assoc :db-query results)))
(results-window app "select changes()" :title (cadr (assoc :db-query results))))
(error (c)
(alert-dialog obj c :title "Error")))))
:title "Run Database Query" :height 200))))
(defun edit-record (obj app table names data)