MarketSquare / MarketSquare/Robotframework-Database-Library

oracledb thin client - support locale specific date and number conversion

未关闭
#175 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

improvement
主要语言
Python
星标
179
派生
178
PR 合并指标
30 天内没有已合并 PR

描述

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?

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

先从 issue #173 中的 custom-params 连接模式和连接示例开始,然后阅读链接的 python-oracledb thin-mode 全球化示例。定义 Robot Framework 测试数据应如何进行支持 locale 的日期和数字转换,并明确范围是否包括 Oracle 之外的数据库。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
databases
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。