From: Jehan-Guillaume (ioguix) de Rorthais Date: Tue, 7 Jun 2011 09:47:11 +0000 (+0200) Subject: Fix bug with OpenBSD about where setting application_name using PGOPTIONS was raising... X-Git-Tag: REL_5-1-0~107 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=b642a36a39a737dc694d25ede668a781d652ffa1;p=phppgadmin.git Fix bug with OpenBSD about where setting application_name using PGOPTIONS was raising an ERROR --- diff --git a/libraries/lib.inc.php b/libraries/lib.inc.php index 5e5b7fda..f46b9e9a 100644 --- a/libraries/lib.inc.php +++ b/libraries/lib.inc.php @@ -189,7 +189,7 @@ /* starting with PostgreSQL 9.0, we can set the application name */ if(isset($_server_info['pgVersion']) && $_server_info['pgVersion'] >= 9) - putenv("PGOPTIONS=--application_name={$appName}_{$appVersion}"); + putenv("PGAPPNAME={$appName}_{$appVersion}"); // Redirect to the login form if not logged in if (!isset($_server_info['username'])) {