Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDBC 10.2.0.1.0 not trimming trailing white spaces

498825Mar 15 2006 — edited Mar 15 2006
Hi everybody.

As the title says we are having trouble in all our select clauses because we think the driver is not trimming the trailing white spaces.

We are using spring jdbc support and when executing a simple query like:

Select names from foo where name = ‘bar’

The column names is defined as varchar(5), so bar is not found

But when executing:

Select names from foo where name = ‘bar _ _’ (_ are spaces :))

Bar is found.

We used to have the same problem in Informix and found a configuration parameter called IFX_TRIMTRAILINGSPACES=1, we use this parameter in the jdbc connection url, but in oracle we haven’t found an equivalent.

That’s why we are here…

Any suggestions opinions or work arounds are welcome

Thanks in advance…

Hector Lazo
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2006
Added on Mar 15 2006
7 comments
1,536 views