PostgreSQL support
This commit is contained in:
parent
5274ed42bb
commit
92fcfee986
3 changed files with 93 additions and 33 deletions
|
@ -9,10 +9,10 @@
|
|||
* Redistribution of these files must retain the above copyright notice.
|
||||
*
|
||||
* @author Josh Sherman <josh@gravityblvd.com>
|
||||
* @copyright Copyright 2007-2011, Josh Sherman
|
||||
* @copyright Copyright 2007-2012, Josh Sherman
|
||||
* @license http://www.opensource.org/licenses/mit-license.html
|
||||
* @package PICKLES
|
||||
* @link http://p.ickl.es
|
||||
* @link https://github.com/joshtronic/pickles
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -54,6 +54,12 @@ class Database_PDO_Common extends Database_Common
|
|||
{
|
||||
throw new Exception('Data source name is not defined');
|
||||
}
|
||||
|
||||
// This combats a bug: https://bugs.php.net/bug.php?id=62571&edit=1
|
||||
if ($this->driver == 'pdo_pgsql')
|
||||
{
|
||||
$this->attributes[PDO::ATTR_PERSISTENT] = false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue