Andi Gutmans wrote:
Wouldn't that be kind of slow because we'd need to check the query for these special cases?
At 09:12 AM 5/23/2004 +0800, Alan Knowles wrote:
Just a thought - feel free to ignore...
In dataobjects rather than implement extra methods for transactions, I just hooked into query
..
eg. $do->query('BEGIN') - turned off autocommit, and ran begin.
$do->query('ROLLBACK') or $do->('COMMIT'); - ranit , then turned autocommit back on
It seemed far more sensible than fattening up the API.
I also think that aside from having to parse all queries its opening up a can of worms to force a certain SQL syntax to RDBMS that follow a different syntax. I think that whereever we abstract it must be very clear for the user that its abstraction and therefore not the default behaviour of the RDBMS.
regards, Lukas Smith [EMAIL PROTECTED] _______________________________ BackendMedia www.backendmedia.com [EMAIL PROTECTED]
Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin
Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php