Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread

 

By: Kubo Takehiro
RE: Turn off Parameter Binding (escape the ? ch). [ reply ]  
2010-07-20 23:41
Replace '?' with '??' as far as I looked at lib/dbi/sql/preparedstatement.rb though I have not tested it.

By: John Stevens
Turn off Parameter Binding (escape the ? ch). [ reply ]  
2010-07-20 19:25
Hello.

I'm using Ruby DBI and OCI8 to load PL/SQL into an Oracle 11g database. Unfortunately, the package body of several of my packages contains a question mark.

Ruby DBI interprets this as a parameter binding, and ends up scrambling the code so that it does not compile correctly.

Is there any way to tell DBI or OCI8 that the question marks are literal, and not to interpret them as parameter binding placeholders?


Thanks,
John S.