Fix: Errors in postgreSQL support

This commit is contained in:
Laurent Destailleur
2009-10-26 01:22:40 +00:00
parent 96de7b0ab7
commit bf4b183bfb
4 changed files with 5 additions and 4 deletions

View File

@@ -603,7 +603,7 @@ class DoliDb
*/
function idate($param)
{
return adodb_strftime("%Y%m%d%H%M%S",$param);
return "'".adodb_strftime("%Y-%m-%d %H:%M:%S",$param)."'";
}
/**
@@ -968,7 +968,7 @@ class DoliDb
*/
function getDefaultCollationDatabase()
{
$resql=$this->query('SHOW SERVER_ENCODING');
$resql=$this->query('SHOW LC_COLLATE');
$liste=$this->fetch_array($resql);
return $liste['lc_collate'];
}