]> granicus.if.org Git - postgresql/commitdiff
From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>
authorMarc G. Fournier <scrappy@hub.org>
Wed, 2 Apr 1997 18:26:25 +0000 (18:26 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 2 Apr 1997 18:26:25 +0000 (18:26 +0000)
Subject: [HACKERS] libpq variable set patch

  Just a small change, so the automatic variable setting on
connection startup actually works...

src/interfaces/libpq/fe-connect.c

index 979fe8559bcc62cd63623a4e30440ac2fdaca962..27c123e6f39dce4ef5e242a63c525f680a420b42 100644 (file)
@@ -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? */
                                }