Changeset 7576

Show
Ignore:
Timestamp:
05/12/08 11:20:41 (2 months ago)
Author:
pramsey
Message:

Fix PostGIS transaction behavior in fcgi situations (#2613)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/branch-5-0/mapserver/HISTORY.TXT

    r7571 r7576  
    2323 
    2424- mappostgis.c: Fixed overlapping transactions causing core 
    25   dump in fcgi (#2497
     25  dump in fcgi (#2497, #2613
    2626 
    2727- mapagg.cpp: Fixed rendering of non filled vector symbols (#2585) 
  • branches/branch-5-0/mapserver/mappostgis.c

    r7559 r7576  
    700700            if(query_result) { 
    701701                PQclear(query_result); 
    702             } 
     702            } else { 
     703              if (msPOSTGISSanitizeConnection(layerinfo->conn) != MS_SUCCESS) 
     704              { 
     705                return MS_FAILURE; 
     706              } 
     707            } 
    703708 
    704709            layerinfo->cursor_name[0] = '\0'; 
     
    14341439        if(query_result) { 
    14351440            PQclear(query_result); 
    1436         } 
     1441        } else { 
     1442            msPOSTGISSanitizeConnection(layerinfo->conn); 
     1443        } 
    14371444 
    14381445        free(sql); 
     
    16121619        } 
    16131620        free(tmp2); 
     1621        msPOSTGISSanitizeConnection(layerinfo->conn); 
    16141622        return(MS_FAILURE); 
    16151623 
     
    17591767      free(tmp2); 
    17601768      free(sql); 
     1769      msPOSTGISSanitizeConnection(layerinfo->conn); 
    17611770      return(MS_FAILURE); 
    17621771