query on char field

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
Amod
Posts: 3
Joined: Thu 16 May 2019 09:59

query on char field

Post by Amod » Tue 22 Oct 2019 10:09

Version dotNetDirect9.0\9.3.230

I am facing issue with where clause UPPER("COLUMN_NAME") = 'S', the column type is char(4), as it returns no rows. The same works from my Oracle sql client.

I changed 'S' with 'S ' (S with 4 spaces) and it works.

Any suggestions?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: query on char field

Post by Shalex » Sat 26 Oct 2019 13:56

Try adding "Trim Fixed Char=false;" to your connection string. Does this help?

Refer to https://www.devart.com/dotconnect/oracl ... tring.html.

Post Reply