Fix: [ bug #1769 ] Error when installing to a PostgreSQL DB that contains numbers
This commit is contained in:
parent
1c2c1ff3d8
commit
f4def9ea28
@ -4,6 +4,7 @@ English Dolibarr ChangeLog
|
|||||||
|
|
||||||
***** ChangeLog for 3.5.7 compared to 3.5.6 *****
|
***** ChangeLog for 3.5.7 compared to 3.5.6 *****
|
||||||
Fix: Paypal link were broken dur to SSL v3 closed.
|
Fix: Paypal link were broken dur to SSL v3 closed.
|
||||||
|
Fix: [ bug #1769 ] Error when installing to a PostgreSQL DB that contains numbers
|
||||||
|
|
||||||
***** ChangeLog for 3.5.6 compared to 3.5.5 *****
|
***** ChangeLog for 3.5.6 compared to 3.5.5 *****
|
||||||
Fix: Avoid missing class error for fetch_thirdparty method #1973
|
Fix: Avoid missing class error for fetch_thirdparty method #1973
|
||||||
|
|||||||
@ -1021,7 +1021,7 @@ class DoliDBPgsql extends DoliDB
|
|||||||
// Test charset match LC_TYPE (pgsql error otherwise)
|
// Test charset match LC_TYPE (pgsql error otherwise)
|
||||||
//print $charset.' '.setlocale(LC_CTYPE,'0'); exit;
|
//print $charset.' '.setlocale(LC_CTYPE,'0'); exit;
|
||||||
|
|
||||||
$sql='CREATE DATABASE '.$database.' OWNER '.$owner.' ENCODING \''.$charset.'\'';
|
$sql='CREATE DATABASE "'.$database.'" OWNER "'.$owner.'" ENCODING \''.$charset.'\'';
|
||||||
dol_syslog($sql,LOG_DEBUG);
|
dol_syslog($sql,LOG_DEBUG);
|
||||||
$ret=$this->query($sql);
|
$ret=$this->query($sql);
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user