Re: Re: [RFC] Debugging PDO Prepared Statement Emulation
| From: | Adam Baratz | Date: | Wed, 26 Oct 2016 19:05:50 +0000 |
| Subject: | Re: Re: [RFC] Debugging PDO Prepared Statement Emulation | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-96621@lists.php.net to get a copy of this message | ||
>
> > My point is that you are adding 'testing tools' which are only any use
> > to test themselves and not the actual interface? It's creating
> > additional code that has nothing to do with testing that PDO is working
> > cleanly properly across all databases, especially if it does not expect
> > a working connection to carry out the testing.
>
> The SQL parser is shared between drivers, so in a sense it's part of
> the interface. It's already possible to test the interface by
> observing the effects of queries. This would allow testing of what
> happens immediately prior. The parser alone is over 700 LoC.
>
I incorporated some feedback from this thread and reduced the RFC to a
single proposal:
https://wiki.php.net/rfc/debugging_pdo_prepared_statement_emulation