Function: nornix_site.get_document

Information
DTD identifierDeterministicData accessMode
int(11)NOREADS SQL DATA

Code

Get document from path

CREATE DEFINER=`root`@`localhost` FUNCTION `get_document`(vPath VARCHAR(127)) RETURNS int(11)
    READS SQL DATA
    COMMENT 'Get document from path'
BEGIN
 IF NOT IFNULL(@tempdocpath = vPath, 0)
  THEN CALL get_document_sub(vPath);
 END IF;
 RETURN 1;
END