diff --git a/.gitee/PULL_REQUEST_TEMPLATE.en.md b/.gitee/PULL_REQUEST_TEMPLATE.en.md new file mode 100644 index 0000000000000000000000000000000000000000..03d325e7fbbb60196d99d2990813b944b1d09555 --- /dev/null +++ b/.gitee/PULL_REQUEST_TEMPLATE.en.md @@ -0,0 +1,21 @@ + + +**Title** : + +**Content**: + +**Root Cause Analysis**: + +**Modification**: +1. xxx +2. xxx + +**Related issue**: + +**Testing reports**: +1. Please attach the self-test result (content or screenshot). +2. Can you add the FastCheck test case? If yes, please add the FastCheck test case. +3. Whether data modification is involved? If yes, supplement the data in the Docs repository. +4. Determine whether to support expansion scenarios such as upgrade and online expansion. +5. Determine whether to consider abnormal scenarios, concurrent scenarios, forward compatibility scenarios, and performance scenarios. +6. Check whether other modules are affected. \ No newline at end of file diff --git a/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md b/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md new file mode 100644 index 0000000000000000000000000000000000000000..d4c7da3298eda8a84746e8373659f3c38097a9e4 --- /dev/null +++ b/.gitee/PULL_REQUEST_TEMPLATE.zh-CN.md @@ -0,0 +1,31 @@ + + + + +【标题】(加入pr模板,更新文件内容。) + +【实现内容】:加入pr模板,更新workdir(带status文件夹),优化创建INTEGER时系统表查不出precision处理放入38。 + +【根因分析】:oracle端使用INTEGER创建时,系统表查出precision为空,导致精度无。 + +【实现方案】:当scale为0,精度为空时,处理为precision=38 + +【关联需求或issue】:无 + +【开发自验报告】: +1. 请附上自验结果(内容或者截图) + ![img.png](img.png) +2. 是否可以添加fastcheck测试用例,如是,请补充fastcheck用例 + ```oracle + create table t_number(id INTEGER) + ``` +3. 是否涉及资料修改,如是,在docs仓库补充资料 + 否 +4. 是否考虑支撑升级和在线扩容等扩展场景 + 否 +5. 是否考虑异常场景/并发场景/前向兼容/性能场景 + 否 +6. 是否对其他模块产生影响 + 否 + +【其他说明】:暂无 \ No newline at end of file diff --git a/.gitee/img.png b/.gitee/img.png new file mode 100644 index 0000000000000000000000000000000000000000..6cce6ca619cad6e857424aff401ecf52ea21ebf8 Binary files /dev/null and b/.gitee/img.png differ diff --git a/dmt/src/main/java/com/gbase8c/dmt/db/oracle/TableObjectImpl.java b/dmt/src/main/java/com/gbase8c/dmt/db/oracle/TableObjectImpl.java index 0601b1077c529c9f8d44e9fc1fa856c39dc453ad..e572c1cc6e66891c169a9acaa64579b9950024b9 100644 --- a/dmt/src/main/java/com/gbase8c/dmt/db/oracle/TableObjectImpl.java +++ b/dmt/src/main/java/com/gbase8c/dmt/db/oracle/TableObjectImpl.java @@ -130,6 +130,12 @@ public class TableObjectImpl extends MetaImpl implements TableObject { // for (TableDto.ColumnDto columnDto : columnDtos) { columnDto.setSqlType(toSqlType(columnDto.getDataType())); + if (Objects.equals(columnDto.getSqlType(),Types.NUMERIC) + && !(Objects.isNull(columnDto.getDataScale())) + && (Objects.isNull(columnDto.getDataPrecision())) + && columnDto.getDataScale() == 0){ + columnDto.setDataPrecision(38); + } if (Objects.equals(columnDto.getSqlType(),Types.NUMERIC) && !(Objects.isNull(columnDto.getDataScale())) && !(Objects.isNull(columnDto.getDataPrecision())) diff --git a/quickstart/workdir.zip b/quickstart/workdir.zip index 75ae1c58e49515a2549dcd04a52ff8ad941c2674..5103b75a644dfb3ac04bd6efa6d1e0a50cbf415d 100644 Binary files a/quickstart/workdir.zip and b/quickstart/workdir.zip differ