From 0a74467296833f8b520710a20b51a013e8693958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Doursenaud?= Date: Fri, 21 Feb 2014 14:57:19 +0100 Subject: [PATCH] Added FIXMEs and TODOs on all dummy methods in database drivers --- htdocs/core/db/mssql.class.php | 64 ++++++++++----------------------- htdocs/core/db/pgsql.class.php | 3 ++ htdocs/core/db/sqlite.class.php | 3 ++ 3 files changed, 24 insertions(+), 46 deletions(-) diff --git a/htdocs/core/db/mssql.class.php b/htdocs/core/db/mssql.class.php index d16462dce12..19fe025ab8b 100644 --- a/htdocs/core/db/mssql.class.php +++ b/htdocs/core/db/mssql.class.php @@ -237,6 +237,9 @@ class DoliDBMssql extends DoliDB */ function getDriverInfo() { + // FIXME: Dummy method + // TODO: Implement + return ''; } @@ -1019,15 +1022,9 @@ class DoliDBMssql extends DoliDB */ function getDefaultCharacterSetDatabase() { - /* - $resql=$this->query('SHOW VARIABLES LIKE \'character_set_database\''); - if (!$resql) - { - return $this->forcecharset; - } - $liste=$this->fetch_array($resql); - return $liste['Value']; - */ + // FIXME: Dummy method + // TODO: Implement + return ''; } @@ -1038,25 +1035,10 @@ class DoliDBMssql extends DoliDB */ function getListOfCharacterSet() { - /* - $resql=$this->query('SHOW CHARSET'); - $liste = array(); - if ($resql) - { - $i = 0; - while ($obj = $this->fetch_object($resql) ) - { - $liste[$i]['charset'] = $obj->Charset; - $liste[$i]['description'] = $obj->Description; - $i++; - } - $this->free($resql); - } else { - return null; - } - return $liste; - */ - return ''; // attente debuggage + // FIXME: Dummy method + // TODO: Implement + + return ''; } /** @@ -1082,24 +1064,10 @@ class DoliDBMssql extends DoliDB */ function getListOfCollation() { - /* - $resql=$this->query('SHOW COLLATION'); - $liste = array(); - if ($resql) - { - $i = 0; - while ($obj = $this->fetch_object($resql) ) - { - $liste[$i]['collation'] = $obj->Collation; - $i++; - } - $this->free($resql); - } else { - return null; - } - return $liste; - */ - return ''; // attente debugage + // FIXME: Dummy method + // TODO: Implement + + return ''; } /** @@ -1109,6 +1077,8 @@ class DoliDBMssql extends DoliDB */ function getPathOfDump() { + // FIXME: Dummy method + // TODO: Implement return ''; } @@ -1120,6 +1090,8 @@ class DoliDBMssql extends DoliDB */ function getPathOfRestore() { + // FIXME: Dummy method + // TODO: Implement return ''; } diff --git a/htdocs/core/db/pgsql.class.php b/htdocs/core/db/pgsql.class.php index f85eff1e5e1..a73e5f545bb 100644 --- a/htdocs/core/db/pgsql.class.php +++ b/htdocs/core/db/pgsql.class.php @@ -466,6 +466,9 @@ class DoliDBPgsql extends DoliDB */ function getDriverInfo() { + // FIXME: Dummy method + // TODO: Implement + return ''; } diff --git a/htdocs/core/db/sqlite.class.php b/htdocs/core/db/sqlite.class.php index 37460f0e23c..fb033bb65da 100644 --- a/htdocs/core/db/sqlite.class.php +++ b/htdocs/core/db/sqlite.class.php @@ -389,6 +389,9 @@ class DoliDBSqlite extends DoliDB */ function getDriverInfo() { + // FIXME: Dummy method + // TODO: Implement + return ''; }