Hello,
the used database is Oracle 11g, Robotask is running inside a VM.
The simple SQL "select to_number('123,45') from dual" returns ...
...within SQLPlus: 123,45 as a number
...within Robotask: "Invalid number"
Any idea?
Different SQL result with Robotask?!
Different SQL result with Robotask?!
- Attachments
-
- to_number.gif (23.35 KiB) Viewed 32670 times
Re: Different SQL result with Robotask?!
This seems to work:
select TO_NUMBER('123,45', '99999999999999999999D9999999', 'NLS_NUMERIC_CHARACTERS = '', ''') from dual
I'm using Robotask 6.2 now. With one of the previous versions ...to_number('123,45')... did work fine. Was something changed for the current version?
select TO_NUMBER('123,45', '99999999999999999999D9999999', 'NLS_NUMERIC_CHARACTERS = '', ''') from dual
I'm using Robotask 6.2 now. With one of the previous versions ...to_number('123,45')... did work fine. Was something changed for the current version?
Re: Different SQL result with Robotask?!
Maybe the different you have regional settings for opened session.
If I remember correctly you can set some default settings for "SQL Plus"
But RoboTask uses default settings for your system.
Try to change "Locale identifier" in the connection string of the query
If I remember correctly you can set some default settings for "SQL Plus"
But RoboTask uses default settings for your system.
Try to change "Locale identifier" in the connection string of the query
Oleg Yershov
Re: Different SQL result with Robotask?!
No changes. Maybe you made changes in Oracle client: install new version or patchesWas something changed for the current version?
Oleg Yershov
Re: Different SQL result with Robotask?!
This seems to have no effect:Oleg wrote:Try to change "Locale identifier" in the connection string of the query
The connection string doesn't contain this parameter, even if I change it.
Re: Different SQL result with Robotask?!
No changes were made for Oracle client. I only installed a new version of Robotask.Oleg wrote:No changes. Maybe you made changes in Oracle client: install new version or patches
It's possible to solve the problem by using NLS parameters, but it's a bit complicated using them for the first time...

Re: Different SQL result with Robotask?!
You can add this manually. For example:The connection string doesn't contain this parameter, even if I change it.
Locale Identifier=1031
1031 - German locale
Oleg Yershov
Re: Different SQL result with Robotask?!
Apparently some changes are existNo changes were made for Oracle client. I only installed a new version of Robotask.
RoboTask uses system ADO data interface. By-turn the ADO engine uses DLL of native Oracle client.
I can advise you to install (if it necessary) native Oracle interface for ADO and ODBC and use it.
See screenshot:
Oleg Yershov
Re: Different SQL result with Robotask?!
My connect string looks now like this:Oleg wrote:You can add this manually. For example:
Locale Identifier=1031
1031 - German locale
Provider=OraOLEDB.Oracle.1;Password=<...>;Persist Security Info=True;User ID=<...>;Data Source=<...>;Locale Identifier=1031
Unfortunately there's still no change in behaviour.
But at the moment I'm OK with my workarounds.