Re: [RFC] [Discussion] Implement SQLite "openBlob" feature in PDO

From: Date: Sun, 01 Oct 2017 05:46:38 +0000
Subject: Re: [RFC] [Discussion] Implement SQLite "openBlob" feature in PDO
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-100804@lists.php.net to get a copy of this message
On Wed, 27 Sep 2017 09:47:51 +0100 / Dan Ackroyd <danack@basereality.com> said : > On 26 September 2017 at 03:03, BohwaZ/PHP <php@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.

« previous php.internals (#100804) next »