Skip to content

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

Description

@amochin

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?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions