mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-15 15:58:52 +00:00
Allow ODBC connections for Firebird Capitalize fixture tables and columns for Firebird On database drop failure, drop all tables Provide cleanup utilities for databases that cannot be dropped PHPBB3-10678
24 lines
No EOL
639 B
PHP
24 lines
No EOL
639 B
PHP
<?php
|
|
/**
|
|
* Used for passing in information about the PDO driver
|
|
* since the PDO class reveals nothing about the DSN that
|
|
* the user provided.
|
|
*
|
|
* This is used in the custom PHPUnit ODBC driver
|
|
*/
|
|
class phpbb_database_connection_ODBC_PDO_wrapper extends PDO
|
|
{
|
|
//Name of the driver being used (i.e. mssql, firebird)
|
|
public $driver = '';
|
|
|
|
//Version number of driver since PDO::getAttribute(PDO::ATTR_CLIENT_VERSION) is pretty useless for this
|
|
public $version = 0;
|
|
|
|
function __construct($dbms, $version, $dsn, $user, $pass)
|
|
{
|
|
$this->driver = $dbms;
|
|
$this->version = (double)$version;
|
|
|
|
parent::__construct($dsn, $user, $pass);
|
|
}
|
|
} |