Merge branch 'master' of http://git.roojs.com:8081/Pman.Core
[Pman.Core] / mysql / person_get_company.sql
diff --git a/mysql/person_get_company.sql b/mysql/person_get_company.sql
deleted file mode 100644 (file)
index a5dc09e..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-
-DROP FUNCTION IF EXISTS person_get_company;
-
-DELIMITER $$
-CREATE FUNCTION person_get_company(  
-       in_id INT(11)
-    )  RETURNS INT(11) DETERMINISTIC
-    BEGIN
-        
-        DECLARE v_id INT(11);
-        SET v_id = 0;
-        SELECT company_id INTO v_id FROM Person WHERE id  = in_id LIMIT 1;
-        RETURN v_id;
-    END $$
-DELIMITER ;