ORA-01704 String literal too long when using with Code Igniter ORA-01704 String literal too long when using with Code Igniter codeigniter codeigniter

ORA-01704 String literal too long when using with Code Igniter


ORA-01704: string literal too longCause: The string literal is longer than 4000 characters.Action: Use a string literal of at most 4000 characters.Longer values may only be entered using bind variables.

When inserting/updating CLOB values longer than 4000 characters it's needed to use binded parameters.

I'm not Code Igniter user but examinig Code Igniter's database abstraction classes shows that it doesn't use prepared statements and real variable binding (BTW: I wouldn't use Code Igniter framework because of this...).

So, the conclusion is you can't do what you want to do using Code Igniter's helpers for database interaction, at least without rewriting some of its code. I believe that in this particular case you must use "pure" PDO interface.