aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-04-02 18:26:25 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-04-02 18:26:25 +0000
commit920c58df71f2dd02b0221dd89e0b7dfc57f8c778 (patch)
treeea8cd82a3777259566fa93eba593a98284c29eab /src
parenta51df14a6927933ba576850a50125fccf283a175 (diff)
downloadpostgresql-920c58df71f2dd02b0221dd89e0b7dfc57f8c778.tar.gz
postgresql-920c58df71f2dd02b0221dd89e0b7dfc57f8c778.zip
From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>
Subject: [HACKERS] libpq variable set patch Just a small change, so the automatic variable setting on connection startup actually works...
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/fe-connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index 979fe8559bc..27c123e6f39 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.27 1997/03/25 09:08:06 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.28 1997/04/02 18:26:25 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -540,7 +540,7 @@ connectDB(PGconn *conn)
{
PGresult *res;
- sprintf(setQuery, "SET %s TO \".60%s\"", eo->pgName, val);
+ sprintf(setQuery, "SET %s TO '.60%s'", eo->pgName, val);
res = PQexec(conn, setQuery);
PQclear(res); /* Don't care? */
}