Re: RE: pdo design
| From: | Lukas Smith | Date: | Sun, 23 May 2004 13:10:31 +0000 |
| Subject: | Re: RE: pdo design | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10047@lists.php.net to get a copy of this message | ||
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: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 smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07Just 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.