[Gdal-dev] OGR PG bugfix
Frank Warmerdam
warmerdam at pobox.com
Wed Apr 28 08:46:15 EDT 2004
Markus Neteler wrote:
> Frank,
>
> a strange parse error appears currently with PG connections.
> After quite some time I found it:
>
> diff -u -r1.22 ogrpgdatasource.cpp
> --- ogrpgdatasource.cpp 23 Apr 2004 15:10:10 -0000 1.22
> +++ ogrpgdatasource.cpp 28 Apr 2004 06:21:35 -0000
> @@ -273,7 +273,7 @@
> hResult = PQexec(hPGConn,
> "DECLARE mycursor CURSOR for "
> "SELECT relname FROM pg_class "
> - "WHERE (relkind in ('r','v') AND relname !~ '^pg'" );
> + "WHERE (relkind in ('r','v') AND relname !~ '^pg')" );
> }
>
> if( hResult && PQresultStatus(hResult) == PGRES_COMMAND_OK )
>
Markus,
Yikes! My mistake. I have committed the fix to CVS.
Best regards,
--
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | Geospatial Programmer for Rent
More information about the Gdal-dev
mailing list