]> git.mjollnir.org Git - moodle.git/commitdiff
PostgreSQL 7.x pg_dump command line options fix
authorpatrickslee <patrickslee>
Sun, 12 Mar 2006 21:40:24 +0000 (21:40 +0000)
committerpatrickslee <patrickslee>
Sun, 12 Mar 2006 21:40:24 +0000 (21:40 +0000)
admin/utfdbmigrate.php

index 5620d7a7261d46e97a1424346baaf4032310d9b2..280605c742d7990cc54a256632a04ab5b58d3d54 100755 (executable)
@@ -199,7 +199,7 @@ function db_migrate2utf8(){   //Eloy: Perhaps some type of limit parameter here
             } else {
                 $cluster = '';
             }
-            $cmd = "PGPASSWORD={$CFG->dbpass} pg_dump -Fp -E 'UNICODE' -O -x -U {$CFG->dbuser}$cluster";
+            $cmd = "PGPASSWORD={$CFG->dbpass} PGCLIENTENCODING='UNICODE' pg_dump -Fp -O -x -U {$CFG->dbuser}$cluster";
             if ($CFG->dbhost)  {
                 $host = split(":", $CFG->dbhost);
                 if ($host[0]) $cmd .= " -h {$host[0]}";