]> granicus.if.org Git - postgis/commitdiff
Revert #1830
authorPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 21 May 2012 08:05:57 +0000 (08:05 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Mon, 21 May 2012 08:05:57 +0000 (08:05 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9760 b70326c6-7e19-0410-871a-916f4a2858ee

loader/pgsql2shp-core.c

index 03514b39702d468ee2906cd3cc9679ffaea395a1..2a903f0044d0cd4f4ce0fc9483c41dc31c6602e2 100644 (file)
@@ -1350,18 +1350,6 @@ ShpDumperConnectDatabase(SHPDUMPERSTATE *state)
 
        PQclear(res);
 
-       /* Set bytea_output format to escape, required for PgSQL 9.2+ (dfuhry) */
-       res = PQexec(state->conn, "SET bytea_output='escape'");
-       if (PQresultStatus(res) != PGRES_COMMAND_OK)
-       {
-               snprintf(state->message, SHPDUMPERMSGLEN, _("Error setting bytea_output to 'escape': %s"), PQresultErrorMessage(res));
-               PQclear(res);
-               free(connstring);
-               return SHPDUMPERERR;
-       }
-
-       PQclear(res);
-
        /* Find the OID for the geometry type */
        res = PQexec(state->conn, "SELECT oid FROM pg_type WHERE typname = 'geometry'");
        if (PQresultStatus(res) != PGRES_TUPLES_OK)