/** * Connect to the db */ public function connect() { parent::connect(); // Money type has a fixed precision of 10 in PostgreSQL 8.2 and below, and as of // PostgreSQL 8.3 it has a fixed precision of 19. PostgreSQLColumn.extract_precision // should know about this but can't detect it there, so deal with it here. Horde_Db_Adapter_Postgresql_Column::$moneyPrecision = $this->postgresqlVersion() >= 80300 ? 19 : 10; $this->_configureConnection(); }
/** * Connect to the db */ public function connect() { parent::connect(); $this->_connection->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); $retval = $this->_connection->exec('PRAGMA full_column_names=0'); if ($retval === false) { $error = $this->_connection->errorInfo(); throw new Horde_Db_Exception($error[2]); } $retval = $this->_connection->exec('PRAGMA short_column_names=1'); if ($retval === false) { $error = $this->_connection->errorInfo(); throw new Horde_Db_Exception($error[2]); } $this->_sqliteVersion = $this->selectValue('SELECT sqlite_version(*)'); }
/** * Connect to the db */ public function connect() { parent::connect(); // ? $this->_connection->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true); // SET NAMES ? }