Skip to content
Permalink
Browse files
Update mapquery.c
Added extra braces to prettify
  • Loading branch information
computerchemist committed Nov 21, 2018
1 parent bf63d3d commit 978b0d6a87e699d8709b758819fe687e2e3ef5c5
Showing 1 changed file with 10 additions and 5 deletions.
@@ -986,8 +986,9 @@ int msQueryByFilter(mapObj *map)
return MS_SUCCESS;
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByFilter()");
}
return MS_FAILURE;

query_error:
@@ -1285,8 +1286,9 @@ int msQueryByRect(mapObj *map)
return(MS_SUCCESS);
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByRect()");
}
return(MS_FAILURE);
}

@@ -1603,8 +1605,9 @@ int msQueryByFeatures(mapObj *map)
if(GET_LAYER(map, l)->resultcache && GET_LAYER(map, l)->resultcache->numresults > 0) return(MS_SUCCESS);
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByFeatures()");
}
return(MS_FAILURE);
}

@@ -1839,8 +1842,9 @@ int msQueryByPoint(mapObj *map)
return(MS_SUCCESS);
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByPoint()");
}
return(MS_FAILURE);
}

@@ -2119,8 +2123,9 @@ int msQueryByShape(mapObj *map)
return(MS_SUCCESS);
}

if( lp->debug >= MS_DEBUGLEVEL_V )
if( lp->debug >= MS_DEBUGLEVEL_V ) {
msSetError(MS_NOTFOUND, "No matching record(s) found.", "msQueryByShape()");
}
return(MS_FAILURE);
}

0 comments on commit 978b0d6

Please sign in to comment.