Windows Oracle Data Access Components (MOSC)

MOSC Banner

Binding to CHAR columns - problem?

edited May 21, 2012 8:17PM in Windows Oracle Data Access Components (MOSC) 7 commentsAnswered
Greetings All;
My Developers are reporting something that sounds a bit odd, but thought I'd better get a second opinion before crying "Bug!"

Client : Visual Studio 2010, .Net 4.0, Windows 7, x64 (I think)
Database : 11.1.0.7.0 (Linux Redhat)

From a .Net client program, they are issuing SQL queries (actually updates) against CHAR columns using bind variables to supply the query values (like good little Developers), something like this:
update ... where char_field = ?
The oddity arises where the char_field involved contains trailing spaces
  • If the parameter value is padded out to the correct length for the field, then all is well and the query works as expected.  

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