From b642a36a39a737dc694d25ede668a781d652ffa1 Mon Sep 17 00:00:00 2001 From: "Jehan-Guillaume (ioguix) de Rorthais" Date: Tue, 7 Jun 2011 11:47:11 +0200 Subject: [PATCH] Fix bug with OpenBSD about where setting application_name using PGOPTIONS was raising an ERROR --- libraries/lib.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'])) { -- 2.39.5