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

感情迁移 提交于 2019-12-23 12:20:47

问题


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 ?


回答1:


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



来源:https://stackoverflow.com/questions/13946641/error-this-feature-is-not-available-for-the-database-you-are-using

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!