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,350
  • 20
  • 26
hsuk
  • 6,571
  • 12
  • 48
  • 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
  • 669
  • 6
  • 18
Kanishka Panamaldeniya
  • 16,732
  • 29
  • 117
  • 190