Skip to content

Commit

Permalink
Change to SPI_execute so we can run SRS query in 'read_only' mode and…
Browse files Browse the repository at this point in the history
… avoid transaction issues that break parallel mode

git-svn-id: http://svn.osgeo.org/postgis/trunk@16248 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
pramsey committed Jan 10, 2018
1 parent 8a4b3a7 commit 7fb6324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libpgcommon/lwgeom_transform.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ char* GetProj4StringSPI(int srid)

/* Execute the lookup query */
snprintf(proj4_spi_buffer, 255, "SELECT proj4text FROM spatial_ref_sys WHERE srid = %d LIMIT 1", srid);
spi_result = SPI_exec(proj4_spi_buffer, 1);
spi_result = SPI_execute(proj4_spi_buffer, true, 1);

/* Read back the PROJ4 text */
if (spi_result == SPI_OK_SELECT && SPI_processed > 0)
Expand Down

0 comments on commit 7fb6324

Please sign in to comment.