collect-table-refs issue in sql/expressions.lisp

Daniel Lowe <[email protected]>
Newsgroups gmane.lisp.clsql.devel
Organization digital sanctuary
Message-ID <[email protected]>
The sql-function-exp method collect-table-refs refers to the components slot, 
but no such slot exists - the correct slot is args.  Fix below:

(defmethod collect-table-refs ((sql sql-function-exp))
  (let ((tabs nil))
    (dolist (exp (slot-value sql 'args))
      (let ((refs (collect-table-refs exp)))
        (if refs (setf tabs (append refs tabs)))))
    (remove-duplicates tabs
                       :test (lambda (tab1 tab2)
                               (equal (slot-value tab1 'name)
                                      (slot-value tab2 'name))))))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.