[rucksack-devel] Error unbound Slot Transaction-id

Helmut G. Enders helmut at cybernetic-systems.de
Wed Jan 7 18:18:13 UTC 2009


Mariano Montone wrote:
> Is it possible that
> 
> (rucksack:with-rucksack (rs "/tmp/db")
>           (rucksack:with-transaction ()
>             (make-instance 'user :no 1)))
> 
> returns a user instance and when the lisp listener tries to print it 
> fails because it needs to read the slots but there aren't any 
> transactions anymore? That's why returning nil works fine.

You are right:

  (prog1 'hello
         (rucksack:with-rucksack (rs "/tmp/db")
           (rucksack:with-transaction ()
             (make-instance 'user :no 11))))

HELLO

without error!

OK, only the test case was in the repl, but your idea  helps debugging my code. :-)

Thanks,
Helmut




More information about the rucksack-devel mailing list