check last_oci_status for MS_FAILURE (set by TRY()) if an error ocurred return 1; * otherwise, returns 0 */
| 286 | /* check last_oci_status for MS_FAILURE (set by TRY()) if an error ocurred return 1; |
| 287 | * otherwise, returns 0 */ |
| 288 | static int ERROR( char *routine, msOracleSpatialHandler *hand, msOracleSpatialDataHandler *dthand ) |
| 289 | { |
| 290 | if (hand->last_oci_status == MS_FAILURE) |
| 291 | { |
| 292 | /* there was an error */ |
| 293 | msSetError( MS_ORACLESPATIALERR, (char *)hand->last_oci_error, routine ); |
| 294 | return 1; /* error processed */ |
| 295 | } |
| 296 | else |
| 297 | return 0; /* no error */ |
| 298 | } |
| 299 | |
| 300 | /* break layer->connection (username/password@dblink) into username, password and dblink */ |
| 301 | static void msSplitLogin( char *connection, mapObj *map, char **username, char **password, char **dblink ) |
no test coverage detected