projects
/
Pman.Core
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
NotifySmtpCheck.php
[Pman.Core]
/
mysql
/
project_get_type.sql
1
2
DROP FUNCTION IF EXISTS project_get_type;
3
DELIMITER $$
4
CREATE FUNCTION project_get_type(in_id INT(11)) RETURNS VARCHAR(2) DETERMINISTIC
5
BEGIN
6
DECLARE v_ret VARCHAR(2);
7
SET v_ret= '';
8
SELECT type INTO v_ret FROM Projects WHERE id = in_id LIMIT 1;
9
RETURN v_ret;
10
END $$
11
DELIMITER ;