On Wed, 27 Sep 2017 09:47:51 +0100 / Dan Ackroyd
<dan...@basereality.com> said :

> On 26 September 2017 at 03:03, BohwaZ/PHP <p...@bohwaz.net> wrote:
> > Kia ora,
> >
> > https://wiki.php.net/rfc/implement_sqlite_openblob_in_pdo
> 
> 
> Couple of questions:
> 
> > $stream = $pdo->sqliteOpenBlob('test', 'data', 1);
> 
> I tried reading the code but failed; what happens when this is called
> on a PDO connection that isn't to an SQLite database? Also, there
> should probably be tests around that behaviour.

As with other driver-specific methods of PDO, the method won't be
defined and an exception (error) will be raised.

I'll add that detail ASAP thanks.

This is an existing issue when you want to extend PDO to implement lazy
connections (eg. you can't call PDOExtended::sqliteCreateFunction until
the parent constructor of PDO has been called), but is out of the scope
of this RFC.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to