brahma has asked for the wisdom of the Perl Monks concerning the following question:
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can SQL*PLUS features be set via the DBI module ?
by ViceRaid (Chaplain) on Feb 26, 2002 at 16:48 UTC | |
by brahma (Novice) on Feb 26, 2002 at 21:42 UTC | |
|
Re: Can SQL*PLUS features be set via the DBI module ?
by perrin (Chancellor) on Feb 26, 2002 at 17:19 UTC | |
|
Re: Can SQL*PLUS features be set via the DBI module ?
by pileswasp (Monk) on Feb 26, 2002 at 16:53 UTC | |
|
Re: Can SQL*PLUS features be set via the DBI module ?
by rbc (Curate) on Feb 26, 2002 at 18:25 UTC | |
|
Re: Can SQL*PLUS features be set via the DBI module ?
by derby (Abbot) on Feb 26, 2002 at 17:23 UTC | |
|
Re: Can SQL*PLUS features be set via the DBI module ?
by subbu (Initiate) on Apr 27, 2004 at 09:07 UTC |