From 0feae8991b1bc1af85cbeda7fb50e1b2f0fad02e Mon Sep 17 00:00:00 2001 From: opensides Date: Wed, 25 Aug 2004 21:16:22 +0000 Subject: [PATCH] renome libraire postgresql en pgsql par facilite ajouter un fichier pour faire les grants sur postgresql --- htdocs/lib/grant.postgres.php | 29 +++++++++++++++++++ .../lib/{postgresql.lib.php => pgsql.lib.php} | 11 +++++-- 2 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 htdocs/lib/grant.postgres.php rename htdocs/lib/{postgresql.lib.php => pgsql.lib.php} (97%) diff --git a/htdocs/lib/grant.postgres.php b/htdocs/lib/grant.postgres.php new file mode 100644 index 00000000000..2a0d1c3d9c7 --- /dev/null +++ b/htdocs/lib/grant.postgres.php @@ -0,0 +1,29 @@ + diff --git a/htdocs/lib/postgresql.lib.php b/htdocs/lib/pgsql.lib.php similarity index 97% rename from htdocs/lib/postgresql.lib.php rename to htdocs/lib/pgsql.lib.php index 0b823f4bdab..94d3465fb30 100644 --- a/htdocs/lib/postgresql.lib.php +++ b/htdocs/lib/pgsql.lib.php @@ -89,7 +89,7 @@ class DoliDb { // Essai connexion serveur - $this->db = $this->connect($host, $user, $pass); + $this->db = $this->connect($host, $user, $pass,$name); if ($this->db) { @@ -182,7 +182,7 @@ class DoliDb { else return 0; } - } + /*! \brief copie d'une database. @@ -488,6 +488,11 @@ class DoliDb { return pg_affected_rows($this->db); } + function getdsn() + { + $pear = $dolibarr_main_db_type.'://'.$dolibarr_main_db_user.':'.$dolibarr_main_db_pass.'@'.$dolibarr_main_db_host.'/'.$dolibarr_main_db_name; + return $pear; + } + } - ?>