From 2b368f9e65cba5d009c1e144c067a8a68a31283a Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 11 Oct 2016 11:06:43 +0800 Subject: [PATCH] mysql/core_person_get_action_type.sql --- mysql/core_person_get_action_type.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mysql/core_person_get_action_type.sql b/mysql/core_person_get_action_type.sql index dcd36804..ddf77ec2 100644 --- a/mysql/core_person_get_action_type.sql +++ b/mysql/core_person_get_action_type.sql @@ -1,13 +1,13 @@ -DROP FUNCTION IF EXISTS person_get_action_type; +DROP FUNCTION IF EXISTS core_person_get_action_type; DELIMITER $$ -CREATE FUNCTION person_get_action_type(in_id INT(11)) RETURNS VARCHAR(32) DETERMINISTIC +CREATE FUNCTION core_person_get_action_type(in_id INT(11)) RETURNS VARCHAR(32) DETERMINISTIC BEGIN DECLARE v_ret VARCHAR(32); SET v_ret= ''; - SELECT action_type INTO v_ret FROM Person WHERE id = in_id LIMIT 1; + SELECT action_type INTO v_ret FROM core_person WHERE id = in_id LIMIT 1; RETURN v_ret; END $$ DELIMITER ; -- 2.39.2