Fix bug with OpenBSD about where setting application_name using PGOPTIONS was raising...
authorJehan-Guillaume (ioguix) de Rorthais <jgdr@dalibo.com>
Tue, 7 Jun 2011 09:47:11 +0000 (11:47 +0200)
committerJehan-Guillaume (ioguix) de Rorthais <jgdr@dalibo.com>
Tue, 7 Jun 2011 09:49:13 +0000 (11:49 +0200)
libraries/lib.inc.php

index 5e5b7fda7a449e65d9b0da79ca10f69e27060d9d..f46b9e9aad1a1f839ef3f4035856030b41a9f866 100644 (file)
 
                /* 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'])) {