X-Git-Url: http://git.kpe.io/?p=clsql.git;a=blobdiff_plain;f=sql%2Foodml.lisp;h=99cf0217f31f7c8325a4cc890ae3d0df34606d51;hp=fced9aad186871523aa8a309a3dc5cf3ef612cbc;hb=0bed331173815bfe0544c0fdad6fb8b83ae929f1;hpb=b49459599b33655a541817d317dfeb6f839f637e diff --git a/sql/oodml.lisp b/sql/oodml.lisp index fced9aa..99cf021 100644 --- a/sql/oodml.lisp +++ b/sql/oodml.lisp @@ -1086,7 +1086,7 @@ maximum of MAX-LEN instances updated in each query." order-by offset limit refresh flatp result-types inner-join on (database *default-database*) - instances) + instances parameters) "Called by SELECT to generate object query results when the View Classes VIEW-CLASSES are passed as arguments to SELECT." (declare (ignore all set-operation group-by having offset limit inner-join on)) @@ -1313,6 +1313,7 @@ as elements of a list." results)))))))) (t (let* ((expr (apply #'make-query select-all-args)) + (parameters (second (member :parameters select-all-args))) (specified-types (mapcar #'(lambda (attrib) (if (typep attrib 'sql-ident-attribute) @@ -1328,6 +1329,8 @@ as elements of a list." (database *default-database*) &allow-other-keys) qualifier-args + (when parameters + (setf expr (command-object (sql-output expr database) parameters))) (query expr :flatp flatp :result-types ;; specifying a type for an attribute overrides result-types