function __construct($profile) { if (!function_exists('mysql_connect')) { throw new jException('jelix~db.error.nofunction', 'mysql'); } parent::__construct($profile); }
function __construct($profile) { if (!class_exists('SQLite3')) { throw new jException('jelix~db.error.nofunction', 'sqlite3'); } parent::__construct($profile); }
function __construct($profile) { if (!function_exists('sqlite_open')) { throw new jException('jelix~db.error.nofunction', 'sqlite'); } parent::__construct($profile); }
function __construct($profile) { if (!function_exists('oci_connect')) { throw new jException('jelix~db.error.nofunction', 'oci'); } parent::__construct($profile); $this->dbms = 'oci'; }
function __construct($profile) { // à cause du @, on est obligé de tester l'existence de mysql, sinon en cas d'absence // on a droit à un arret sans erreur if (!function_exists('mysql_connect')) { throw new jException('jelix~db.error.nofunction', 'mysql'); } parent::__construct($profile); }
function __construct($profile) { // because of the @, we need to test mysl existance, else there would be // a stop without error if (!function_exists('mysql_connect')) { throw new jException('jelix~db.error.nofunction', 'mysql'); } parent::__construct($profile); }
function __construct($profile) { if (!function_exists('pg_connect')) { throw new jException('jelix~db.error.nofunction', 'posgresql'); } parent::__construct($profile); if (isset($this->profile['single_transaction']) && $this->profile['single_transaction']) { $this->beginTransaction(); } }
function __construct($profile) { if (!function_exists('pg_connect')) { throw new jException('jelix~db.error.nofunction', 'posgresql'); } parent::__construct($profile); if (isset($this->profile['single_transaction']) && $this->profile['single_transaction']) { $this->beginTransaction(); $this->setAutoCommit(false); } else { $this->setAutoCommit(true); } if (version_compare(pg_parameter_status($this->_connection, "server_version"), '9.0') > -1) { $this->_doExec('SET bytea_output = "escape"'); } }