Print Thread
Query by example shows :qbe_var1 in stead of value by Oracle 19c
#60787 12/03/19 08:09 AM
Joined: Jan 2005
Posts: 19
Utrecht, The Netherlands
F
Member
OP Offline
Member
F
Joined: Jan 2005
Posts: 19
Utrecht, The Netherlands
Using PL/SQL Dev 13.0.6 / Oracle 12.2 oci.dll

When doing a "query by example" on Oracle 12c the query is build as expected.

select * from MDR_ODE_EMAIL t
where ode_id = 'VN'

When doing the same "query by example" on Oracle 19c the query is showing :qbe_var1 in stead of 'VN'

select * from MDR_ODE_EMAIL t
where ode_id = :qbe_var1

Bug or configuration problem?

Re: Query by example shows :qbe_var1 in stead of value by Oracle 19c
Frank Huijbreghs #60790 12/03/19 10:03 AM
Joined: Aug 1999
Posts: 22,214
Member
Offline
Member
Joined: Aug 1999
Posts: 22,214
This happens when querying a UTF8 database on a non-UTF8 Oracle client. The QBE data can now only be passed as bind variable data, since the SQL text cannot include UTF8 characters.

To resolve this you can change the client character set to UTF8 by setting NLS_LANG to <LANGUAGE>_<TERRITORY>.UTF8


Marco Kalter
Allround Automations
Re: Query by example shows :qbe_var1 in stead of value by Oracle 19c
Marco Kalter #60794 12/03/19 12:04 PM
Joined: Jan 2005
Posts: 19
Utrecht, The Netherlands
F
Member
OP Offline
Member
F
Joined: Jan 2005
Posts: 19
Utrecht, The Netherlands
Thanks Marco,

Unfortunately I cannot switch between NLS_LANG settings that easy but it wil do for me now.

Re: Query by example shows :qbe_var1 in stead of value by Oracle 19c
Frank Huijbreghs #60808 12/06/19 05:13 AM
Joined: Feb 2013
Posts: 251
UTC+10
I
Member
Offline
Member
I
Joined: Feb 2013
Posts: 251
UTC+10
You can start PLD instance with required NLS by setting NLS_LANG parameter in the shortcut.


Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.104s Queries: 15 (0.069s) Memory: 2.5084 MB (Peak: 3.0380 MB) Data Comp: Off Server Time: 2024-05-10 00:03:54 UTC
Valid HTML 5 and Valid CSS