Re: [PDO] PostgreSQL auto-reconnect in PDO contructor for permanent connections: request for comments
[email protected] (Marc Barilley) Mon, 19 Apr 2010 14:08:02 +0200
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <[email protected]> |
Any more comments? Should I submit a feature request somewhere on a tracker? Marc Christopher Jones a écrit : > > > Marc Barilley wrote: >> Here is a diff with my patch. It's in the -Bur format. Any comment is >> welcome. >> >> What it does is: >> - define a new constant PDO::PGSQL_ATTR_PING_CONNECTION for the >> driver-specific attributes >> - this can be set to true or false ; default is true > > I'm still -1 on a driver-specific attribute. Similar functionality > could be useful for other drivers so why not have a generic attribute? > > Chris > >> - when set to true, it makes the driver perform a "select 1" on the link >> to thoroughly test the connection >> >> >> Marc >>