So rufen Sie eine gespeicherte Prozedur in CodeIgniter?

Ich kann nicht rufen Sie eine gespeicherte Prozedur in CodeIgniter. Allerdings, wenn ich den Aufruf der Prozedur direkt in MySQL, es funktioniert. Warum funktioniert das nicht wenn ich es in CodeIgniter?

CREATE DEFINER=`root`@`localhost` PROCEDURE `test_proc`()
LANGUAGE SQL
NOT DETERMINISTIC
CONTAINS SQL
SQL SECURITY DEFINER
COMMENT ''
BEGIN
  declare name1 TEXT;
  declare id1 TEXT;
  select name,id into name1,id1 from my_tbl WHERE name='sam';
  select * from my_tbl;
  select name1,id1;
END
InformationsquelleAutor Snap Mash | 2013-08-13
Schreibe einen Kommentar