Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oracledb thin client - support locale specific date and number conversion #175

Open
amochin opened this issue Jun 7, 2023 · 0 comments
Open

Comments

@amochin
Copy link
Collaborator

amochin commented Jun 7, 2023

Currently there is no native support for the python oracledb module, so this issue occurs when using "connect using custom params" mode (see #173 for connection example).
There is a problem if the test data used in Robot Framework has some regional format different from the Oracle DB.
For example, with decimal/float number and dates:

  • The standard English Oracle format for a decimal number is point-based - e.g. 123.45.
  • But in some other languages/regions (e.g. in Germany) the comma-based format is used - 123,45.

So before I save some local values to the database or compare them with the database values, there is some conversion to be done.
Currently it has to performed manually.

Maybe there is a better way?

The thin mode of the oracledb client doesn't support Oracle Globalization variables (see the full comparison between thin and thick clients here).
So they advice to use the python globalization support - and provide an example.

Also I'm not sure, but maybe this issue is relevant also for other databases?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant