From: Mircea Amarascu <mircea@ag...> - 2006-10-05 16:25:57
I've noticed that when an SQLObject is created, there are two queries
made to the database:
one Insert and one Select. Why is the Select query made? Can't the
object be constructed with
the information passed to the Insert query? After all, the consistency
cannot be mantained,
the data can be altered after the Select as well, and that double query
cannot assure that the
attributes are always in sync with the database values.
On Thu, Oct 05, 2006 at 07:26:34PM +0300, Mircea Amarascu wrote:
> I've noticed that when an SQLObject is created, there are two queries
> made to the database:
> one Insert and one Select.
We have to draw values created automatically by the backend -
autoincremented fields, timestamps, functions...
Oleg Broytmann http://phd.pp.ru/ phd@...
Programmers don't die, they just GOSUB without RETURN.
Get latest updates about Open Source Projects, Conferences and News.