MCPcopy Index your code
hub / github.com/MapServer/MapServer / msMySQLJoinClose

Function msMySQLJoinClose

mapjoin.c:813–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811}
812
813int msMySQLJoinClose(joinObj *join)
814{
815#ifndef USE_MYSQL
816 msSetError(MS_QUERYERR, "MySQL support not available (compile with --with-mysql)", "msMySQLJoinClose()");
817 return(MS_FAILURE);
818#else
819 msMySQLJoinInfo *joininfo = join->joininfo;
820
821 if(!joininfo) return(MS_SUCCESS); /* already closed */
822
823 mysql_close(joininfo->conn);
824 if(joininfo->target) free(joininfo->target);
825 free(joininfo);
826 joininfo = NULL;
827
828 return(MS_SUCCESS);
829#endif
830}

Callers 1

msJoinCloseFunction · 0.85

Calls 1

msSetErrorFunction · 0.85

Tested by

no test coverage detected