|
@ -1,6 +1,6 @@ |
|
|
DELIMITER $$ |
|
|
DELIMITER $$ |
|
|
DROP FUNCTION IF EXISTS levenshtein $$ |
|
|
DROP FUNCTION IF EXISTS levenshtein $$ |
|
|
CREATE FUNCTION levenshtein( s1 VARCHAR(255), s2 VARCHAR(255), sensitivity INT ) |
|
|
|
|
|
|
|
|
CREATE FUNCTION levenshtein( s1 VARCHAR(255), s2 VARCHAR(255) ) |
|
|
RETURNS INT |
|
|
RETURNS INT |
|
|
DETERMINISTIC |
|
|
DETERMINISTIC |
|
|
BEGIN |
|
|
BEGIN |
|
@ -39,4 +39,4 @@ ELSE |
|
|
END IF; |
|
|
END IF; |
|
|
RETURN c; |
|
|
RETURN c; |
|
|
END$$ |
|
|
END$$ |
|
|
DELIMITER ; |
|
|
|
|
|
|
|
|
DELIMITER ; |