SQL Language (MOSC)

MOSC Banner

Settings to allow storing of strings consisting of one or more blanks?

edited Dec 21, 2013 12:24AM in SQL Language (MOSC) 8 commentsAnswered
Dear all,
I have a problem in Oracle 11 when trying to insert string values consisting of one or more blanks via bind parameters, namely that the Oracle OLEDB driver is converting such values to null. I know that a string of no characters is converted to a null value, and that is not a problem.

Example:

BEGIN INSERT INTO QTST_COLUMN_TEST2 (INT_KEY,INT_NOTNULL_1,INT_NOTNULL_2,DOUBLE_NOTNULL_1,DOUBLE_NOTNULL_2,STRING_NULL_1,STRING_NOTNULL_1,CHAR_NOTNULL_1,BOOL_NOTNULL_1,DATE_NOTNULL_1,USER_ID,UPDT_DT) VALUES  ( ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ); END;

where the bind value for STRING_NOTNULL_1 has the value '   ' (three blanks).

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center