mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-08 10:03:00 +01:00
Fix: Errors in postgreSQL support
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user