macro_name: WITH-TRANSACTION

library: cl-dbi

call_form: (with-transaction)

status: expansion-error

error:
Error while parsing arguments to DEFMACRO WITH-TRANSACTION:
  too few elements in
    ()
  to satisfy lambda list
    (CONN &BODY BODY):
  at least 1 expected, but got 0


call_form: (with-transaction nil)

expanded:
(let ((#:conn-var170 nil))
  (if (in-transaction #:conn-var170)
      (with-savepoint #:conn-var170)
      (dbi.driver::%with-transaction #:conn-var170)))

status: verified


call_form:
(with-transaction nil
  nil)

expanded:
(let ((#:conn-var171 nil))
  (if (in-transaction #:conn-var171)
      (with-savepoint #:conn-var171
        nil)
      (dbi.driver::%with-transaction #:conn-var171
        nil)))


call_form:
(with-transaction nil
  (progn))

expanded:
(let ((#:conn-var172 nil))
  (if (in-transaction #:conn-var172)
      (with-savepoint #:conn-var172
        (progn))
      (dbi.driver::%with-transaction #:conn-var172
        (progn))))


call_form:
(with-transaction nil
  :key
  nil)

expanded:
(let ((#:conn-var173 nil))
  (if (in-transaction #:conn-var173)
      (with-savepoint #:conn-var173
        :key
        nil)
      (dbi.driver::%with-transaction #:conn-var173
        :key
        nil)))


call_form: (with-transaction 'lol-gen::some-name)

expanded:
(let ((#:conn-var174 'lol-gen::some-name))
  (if (in-transaction #:conn-var174)
      (with-savepoint #:conn-var174)
      (dbi.driver::%with-transaction #:conn-var174)))


macro_name: WITH-TOOK-USEC

call_form: (with-took-usec)

error:
Error while parsing arguments to DEFMACRO WITH-TOOK-USEC:
  too few elements in
    ()
  to satisfy lambda list
    (VAR &BODY BODY):
  at least 1 expected, but got 0


call_form: (with-took-usec nil)

expanded:
(multiple-value-bind (#:before-unixtime175 #:before-usec176)
    (sb-ext:get-time-of-day)
  (multiple-value-prog1 (progn)
    (multiple-value-bind (#:after-unixtime177 #:after-usec178)
        (sb-ext:get-time-of-day)
      (setf nil
              (+ (* (- #:after-unixtime177 #:before-unixtime175) 1000000)
                 (- #:after-usec178 #:before-usec176))))))


call_form:
(with-took-usec nil
  nil)

expanded:
(multiple-value-bind (#:before-unixtime179 #:before-usec180)
    (sb-ext:get-time-of-day)
  (multiple-value-prog1 (progn nil)
    (multiple-value-bind (#:after-unixtime181 #:after-usec182)
        (sb-ext:get-time-of-day)
      (setf nil
              (+ (* (- #:after-unixtime181 #:before-unixtime179) 1000000)
                 (- #:after-usec182 #:before-usec180))))))


call_form:
(with-took-usec nil
  (progn))

expanded:
(multiple-value-bind (#:before-unixtime183 #:before-usec184)
    (sb-ext:get-time-of-day)
  (multiple-value-prog1 (progn (progn))
    (multiple-value-bind (#:after-unixtime185 #:after-usec186)
        (sb-ext:get-time-of-day)
      (setf nil
              (+ (* (- #:after-unixtime185 #:before-unixtime183) 1000000)
                 (- #:after-usec186 #:before-usec184))))))


call_form:
(with-took-usec nil
  :key
  nil)

expanded:
(multiple-value-bind (#:before-unixtime187 #:before-usec188)
    (sb-ext:get-time-of-day)
  (multiple-value-prog1 (progn :key nil)
    (multiple-value-bind (#:after-unixtime189 #:after-usec190)
        (sb-ext:get-time-of-day)
      (setf nil
              (+ (* (- #:after-unixtime189 #:before-unixtime187) 1000000)
                 (- #:after-usec190 #:before-usec188))))))


call_form: (with-took-usec 'lol-gen::some-name)

expanded:
(multiple-value-bind (#:before-unixtime191 #:before-usec192)
    (sb-ext:get-time-of-day)
  (multiple-value-prog1 (progn)
    (multiple-value-bind (#:after-unixtime193 #:after-usec194)
        (sb-ext:get-time-of-day)
      (setf 'lol-gen::some-name
              (+ (* (- #:after-unixtime193 #:before-unixtime191) 1000000)
                 (- #:after-usec194 #:before-usec192))))))


macro_name: WITH-SAVEPOINT

call_form: (with-savepoint)

error:
Error while parsing arguments to DEFMACRO WITH-SAVEPOINT:
  too few elements in
    ()
  to satisfy lambda list
    (CONN &BODY BODY):
  at least 1 expected, but got 0


call_form: (with-savepoint nil)

expanded:
(let* ((#:state-var196 (make-instance 'dbi.driver::savepoint-state :conn nil))
       (#:savepoint-identifier-var197
        (dbi.driver::get-identifier #:state-var196))
       (dbi.driver::*transaction-state*
        (cons #:state-var196 dbi.driver::*transaction-state*))
       #:savepoint-ok195)
  (savepoint nil #:savepoint-identifier-var197)
  (unwind-protect (multiple-value-prog1 (progn) (setf #:savepoint-ok195 t))
    (when (eql (dbi.driver::get-state #:state-var196) :in-progress)
      (if #:savepoint-ok195
          (release-savepoint nil #:savepoint-identifier-var197)
          (rollback-savepoint nil #:savepoint-identifier-var197)))))


call_form:
(with-savepoint nil
  nil)

expanded:
(let* ((#:state-var199 (make-instance 'dbi.driver::savepoint-state :conn nil))
       (#:savepoint-identifier-var200
        (dbi.driver::get-identifier #:state-var199))
       (dbi.driver::*transaction-state*
        (cons #:state-var199 dbi.driver::*transaction-state*))
       #:savepoint-ok198)
  (savepoint nil #:savepoint-identifier-var200)
  (unwind-protect (multiple-value-prog1 (progn nil) (setf #:savepoint-ok198 t))
    (when (eql (dbi.driver::get-state #:state-var199) :in-progress)
      (if #:savepoint-ok198
          (release-savepoint nil #:savepoint-identifier-var200)
          (rollback-savepoint nil #:savepoint-identifier-var200)))))


call_form:
(with-savepoint nil
  (progn))

expanded:
(let* ((#:state-var202 (make-instance 'dbi.driver::savepoint-state :conn nil))
       (#:savepoint-identifier-var203
        (dbi.driver::get-identifier #:state-var202))
       (dbi.driver::*transaction-state*
        (cons #:state-var202 dbi.driver::*transaction-state*))
       #:savepoint-ok201)
  (savepoint nil #:savepoint-identifier-var203)
  (unwind-protect
      (multiple-value-prog1 (progn (progn)) (setf #:savepoint-ok201 t))
    (when (eql (dbi.driver::get-state #:state-var202) :in-progress)
      (if #:savepoint-ok201
          (release-savepoint nil #:savepoint-identifier-var203)
          (rollback-savepoint nil #:savepoint-identifier-var203)))))


call_form:
(with-savepoint nil
  :key
  nil)

expanded:
(let* ((#:state-var205 (make-instance 'dbi.driver::savepoint-state :conn nil))
       (#:savepoint-identifier-var206
        (dbi.driver::get-identifier #:state-var205))
       (dbi.driver::*transaction-state*
        (cons #:state-var205 dbi.driver::*transaction-state*))
       #:savepoint-ok204)
  (savepoint nil #:savepoint-identifier-var206)
  (unwind-protect
      (multiple-value-prog1 (progn :key nil) (setf #:savepoint-ok204 t))
    (when (eql (dbi.driver::get-state #:state-var205) :in-progress)
      (if #:savepoint-ok204
          (release-savepoint nil #:savepoint-identifier-var206)
          (rollback-savepoint nil #:savepoint-identifier-var206)))))


call_form: (with-savepoint 'lol-gen::some-name)

expanded:
(let* ((#:state-var208
        (make-instance 'dbi.driver::savepoint-state :conn 'lol-gen::some-name))
       (#:savepoint-identifier-var209
        (dbi.driver::get-identifier #:state-var208))
       (dbi.driver::*transaction-state*
        (cons #:state-var208 dbi.driver::*transaction-state*))
       #:savepoint-ok207)
  (savepoint 'lol-gen::some-name #:savepoint-identifier-var209)
  (unwind-protect (multiple-value-prog1 (progn) (setf #:savepoint-ok207 t))
    (when (eql (dbi.driver::get-state #:state-var208) :in-progress)
      (if #:savepoint-ok207
          (release-savepoint 'lol-gen::some-name #:savepoint-identifier-var209)
          (rollback-savepoint 'lol-gen::some-name
                              #:savepoint-identifier-var209)))))


macro_name: WITH-CONNECTION

call_form: (with-connection)

error:
Error while parsing arguments to DEFMACRO WITH-CONNECTION:
  too few elements in
    ()
  to satisfy lambda list
    ((CONN-SYM &REST REST) &BODY BODY):
  at least 1 expected, but got 0


call_form: (with-connection nil)

error:
Error while parsing arguments to DEFMACRO WITH-CONNECTION:
  too few elements in
    ()
  to satisfy lambda list
    (CONN-SYM &REST REST):
  at least 1 expected, but got 0


call_form:
(with-connection nil
  nil)


call_form:
(with-connection nil
  (progn))


call_form:
(with-connection nil
  :key
  nil)


call_form: (with-connection 'lol-gen::some-name)

expanded:
(let ((quote (connect lol-gen::some-name)))
  (unwind-protect (progn) (disconnect quote)))