Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
DBD::Oracle 1.06 notes in the Changes file that as of 1.05, it strips trailing spaces from VARCHAR2 fields. This appears to be true on all operations, including SELECT.
Of course, if you strip trailing spaces from a field whose value is ONLY spaces, then the value becomes null (as far as Oracle is concerned).
The only workaround I've found thus far is to use NVL(?,' ') in the preparation of all statements which use this field.
Is there a better workaround? Please??
--Glenn
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: adding blank to varchar2 NOT NULL field in DBD::Oracle
by Cubes (Pilgrim) on Jul 16, 2001 at 05:22 UTC | |
by wardk (Deacon) on Jul 16, 2001 at 18:15 UTC | |
|
Re: adding blank to varchar2 NOT NULL field in DBD::Oracle
by runrig (Abbot) on Jul 16, 2001 at 04:23 UTC |