i\'ve this working code with CI:
$this->db->query(\"call nameOfProcedure(\'param1\', @param2)\"); $query = $this->db->query(\'SELECT @param2 as r
Check out the docs on call_function. It's for calling functions that aren't native to CI's DB driver, not for calling procedures you've written.
call_function
You can check the call_function code in /system/database/DB_driver.php Ln 998 on CI 2.1.0 to see clearly what it's doing.
/system/database/DB_driver.php