correct wrong var name

This commit is contained in:
pls.153 2025-03-21 12:15:16 +01:00
parent a64e53bb59
commit a9d93035b6
2 changed files with 7 additions and 7 deletions

View file

@ -3,9 +3,9 @@
(defvar *file* nil)
(defun query (query &rest values)
(let ((rows (and (x:starts-with "select" query)
(let ((cols (and (x:starts-with "select" query)
(1+ (count #\, (subseq query 0 (search "from" query)))))))
(qrun* (qt:sql-query qt:*cpp* query values rows))))
(qrun* (qt:sql-query qt:*cpp* query values cols))))
(defun ini ()
(setf *file* (app:in-data-path "db"))