Skip to content

Commit

Permalink
closql--iref: Order result
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Jan 25, 2024
1 parent 09ad40f commit 34ba553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions closql.el
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,11 @@
(object-id (closql--oref obj (oref-default obj closql-primary-key))))
(emacsql db [:select $i1 :from $i2 :join $i3
:on (= $i4 $i5)
:where (= $i6 $s7)]
:where (= $i6 $s7) :order-by [(asc $i8)]]
(vconcat select) data-table slot-table
(intern (format "%s:%s" slot-table slot-join))
(intern (format "%s:%s" data-table data-join))
where object-id)))
where object-id (car select))))

(defun closql--slot-tables (obj slot)
(let ((tables (closql--slot-get obj slot :closql-table)))
Expand Down

0 comments on commit 34ba553

Please sign in to comment.