You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timestamp类型:
1.alter session set NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24.MI.SS.FF';
2.create table ts_tb(a timestamp);
3.insert into ts_tb values('2022-0823-19 11.11.11'); 插入成功,查询数据为2022-08-23 19:11:11.110000
4.insert into ts_tb values('2022-082323-19 11.11.11'); 插入失败
timestamp with time zone类型:
1.alter session set NLS_TIMESTAMP_TZ_FORMAT='YYYY-MM-DD HH24.MI.SS.FF TZH:TZM';
2.create table tswtz_tb(a timestamp with time zone);
3.insert into tswtz_tb values('2022-0823-19 11.11.11'); 插入成功,查询数据为2022-08-23 19.11.11.110000 08:00
4.insert into tswtz_tb values('2022-082323-19 11.11.11'); 插入成功,查询数据为 2022-08-23 20.19.11.110000 08:00
同理DD天位数校验,YYYY年分位数校验,HH/MI/SS位数校验有误 时分秒校验皆有误
Expected behavior/code
应该进行有效性校验
The text was updated successfully, but these errors were encountered:
Bug Report
对日期格式,各部分 位数校验均存在问题
MM月份位数校验有误
2022-0823-19 11.11.11、2022-082323-19 11.11.11该两个值在oracle中均插入失败,PG也插入失败
IvorySQL Version
IvorySQL master
OS Version (uname -a)
CentOS 7
Current Behavior
timestamp类型:
1.alter session set NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24.MI.SS.FF';
2.create table ts_tb(a timestamp);
3.insert into ts_tb values('2022-0823-19 11.11.11'); 插入成功,查询数据为2022-08-23 19:11:11.110000
4.insert into ts_tb values('2022-082323-19 11.11.11'); 插入失败
timestamp with time zone类型:
1.alter session set NLS_TIMESTAMP_TZ_FORMAT='YYYY-MM-DD HH24.MI.SS.FF TZH:TZM';
2.create table tswtz_tb(a timestamp with time zone);
3.insert into tswtz_tb values('2022-0823-19 11.11.11'); 插入成功,查询数据为2022-08-23 19.11.11.110000 08:00
4.insert into tswtz_tb values('2022-082323-19 11.11.11'); 插入成功,查询数据为 2022-08-23 20.19.11.110000 08:00
同理DD天位数校验,YYYY年分位数校验,HH/MI/SS位数校验有误 时分秒校验皆有误
Expected behavior/code
应该进行有效性校验
The text was updated successfully, but these errors were encountered: