Define public property 'db_provider' in pdo classes. That is used in various places, especially the installer

pull/37/head
Thomas Bruederli 12 years ago
parent 05c4edf34b
commit 88107d6cf5

@ -30,6 +30,8 @@
*/
class rcube_db
{
public $db_provider;
protected $db_dsnw; // DSN for write operations
protected $db_dsnr; // DSN for read operations
protected $db_connected = false; // Already connected ?

@ -31,6 +31,8 @@
*/
class rcube_db_mssql extends rcube_db
{
public $db_provider = 'mssql';
/**
* Driver initialization
*/

@ -31,6 +31,8 @@
*/
class rcube_db_mysql extends rcube_db
{
public $db_provider = 'mysql';
/**
* Driver initialization/configuration
*/

@ -31,6 +31,8 @@
*/
class rcube_db_pgsql extends rcube_db
{
public $db_provider = 'postgres';
/**
* Get last inserted record ID
*

@ -31,6 +31,8 @@
*/
class rcube_db_sqlite extends rcube_db
{
public $db_provider = 'sqlite';
/**
* Database character set
*/

@ -31,6 +31,8 @@
*/
class rcube_db_sqlsrv extends rcube_db
{
public $db_provider = 'mssql';
/**
* Driver initialization
*/

Loading…
Cancel
Save