5

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 ?

Vadim K.
  • 2,370
  • 18
  • 26
hsuk
  • 6,770
  • 13
  • 50
  • 80

1 Answers1

7

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

Stack Programmer
  • 679
  • 6
  • 18
Kanishka Panamaldeniya
  • 17,302
  • 31
  • 123
  • 193