Re: RE: pdo design
| From: | George Schlossnagle | Date: | Sun, 23 May 2004 01:26:52 +0000 |
| Subject: | Re: RE: pdo design | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-10041@lists.php.net to get a copy of this message | ||
On May 22, 2004, at 9:12 PM, 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.The problem is that those have different syntaxes in different rdbms systems. George