MarketSquare / MarketSquare/Robotframework-Database-Library
oracledb thin client - support locale specific date and number conversion
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 179
- Fork
- 178
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con la modalità di connessione custom-params e l’esempio di connessione nell’issue #173, quindi leggi l’esempio di globalizzazione collegato di python-oracledb thin-mode. Definisci come devono funzionare le conversioni di date e numeri che tengono conto della locale per i dati di test di Robot Framework e chiarisci se l’ambito include database oltre a Oracle.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- databases
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100