Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : This feature is not available for the database you are using

I am using oci8 as my database driver in Codeigniter. While using the following code that calls a stored procedure gives me error :

$this->db->call_function('update_letter_body', $body_letter, $insert_id);

Error : This feature is not available for the database you are using.

What should be done to make this work ?

I am trying to set a value that has more than 4000 characters which doesn't seem to work from direct query and seems like the codeigniter does not support calling functions for oracle. Any suggestions ?

like image 945
hsuk Avatar asked Dec 19 '12 06:12

hsuk


1 Answers

hmmm , try with

$this->db->query("CALL update_letter_body(".$body_letter.",".$insert_id.")");

call_function enables you to call PHP database functions that are not natively included in CodeIgniter,not for calling procedures you've written.

check the documentation

https://www.codeigniter.com/user_guide/database/call_function.html

like image 81
Kanishka Panamaldeniya Avatar answered Oct 03 '22 01:10

Kanishka Panamaldeniya