Re: Bug in 'update-records-from-instance'

Kevin Rosenberg <kevin-HJRc7zDS/[email protected]> Wed, 30 May 2007 06:43:50 -0600
Newsgroups gmane.lisp.clsql.general,gmane.lisp.clsql.devel
Message-ID <[email protected]>
Saurabh Nanda wrote:
> I've been hacking around the CLSQL OODML/OODDL stuff for some time now, and
> just noticed that 'update-records-from-instance' assumes that the database
> connection of an object will be open at the time of updating the DB. Is this
> correct?

Since the every object contains a reference to its database, when a
database is closed the object can no longer reference the
database. This is the behavior of CommonSQL as I tested it on
Lispworks.

Would you propose that an object can automatically reopen a database?
If so, should the object then automatically reclose the database? Such
issues are not covered by the CommonSQL specification.

-- 
Kevin Rosenberg
[email protected]