X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;ds=sidebyside;f=sql%2Fobjects.lisp;h=a995c221fcf2b996e77de512bed0866cfb25cf38;hb=1751e5245c270bd1ee854a98dfe6caa665abe34e;hp=ab1a7bcbefa229e2f1bfeeb95430dfc973318068;hpb=68290f0275c3193cd0413fb247a1395486747338;p=clsql.git diff --git a/sql/objects.lisp b/sql/objects.lisp index ab1a7bc..a995c22 100644 --- a/sql/objects.lisp +++ b/sql/objects.lisp @@ -825,7 +825,7 @@ superclass of the newly-defined View Class." (defmethod instance-refreshed ((instance standard-db-object))) -(defun select (&rest select-all-args) +(defmethod select (&rest select-all-args) "Selects data from database given the constraints specified. Returns a list of lists of record values as specified by select-all-args. By default, the records are each represented as lists of attribute @@ -846,9 +846,10 @@ tuples." (let ((expr (apply #'make-query select-all-args))) (destructuring-bind (&key (flatp nil) (result-types :auto) + (field-names t) (database *default-database*) &allow-other-keys) qualifier-args (query expr :flatp flatp :result-types result-types - :database database))))))) + :field-names field-names :database database)))))))