im trying to do the following

```
SELECT CASE @st
  WHEN 'emp' THEN CALL empata(NEW.eqvis)
  WHEN 'loc' THEN CALL pierde(NEW.eqvis)
  WHEN 'vis' THEN CALL gana(NEW.eqvis)
END
INTO @dat;

```

But i got this:

```
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CALL empata(NEW.eqvis)
                    WHEN 'loc' THEN CALL pierde(NEW.eqvis)
                    WHEN' at line 18

```

But if i remove the "Call" i got an `"Function db.xxx not found"`

What im doing wrong?