I am using the DBI module to connect to an Oracle database and insert text. Of course the text has characters that would cause SQL*PLUS to puke, particularly the ampersand and quotes. To get around this I have to set the escape character to a certain symbol and then escape all SQL special characters that appear in the text. My question is, are there any methods/attributes available in the DBI module to set SQL*PLUS features for each connection?
Having asked that, let me say this... from the 'Programming the Perl BDI' book, I get the sense that there isnt a way to do this. It says the DBI has no concept of a "current session", so I guess that means you cannot set environment variables to last the duration of a session. I also read that statement handles are insulated from each other even if they share the same parent database handle, that suggests that the set SQL*PLUS features would not last across statement handles.
Anyway, I was hoping someone out there had encoutered this issue before and had some thoughts about it.
In reply to Can SQL*PLUS features be set via the DBI module ? by brahma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |