【发布时间】:2019-03-03 12:18:55
【问题描述】:
包装上的代码可以正常工作。从 oracle 表单中,我正在尝试将新条目插入到表中。
错误信息
ORA-01400: 无法将 NULL 插入 ("BUS"."BP_AUTH_CODE"."CODE")
代码
Declare
v_bn varchar2(9);
v_bn_exists number;
v_has_auth_code number;
v_auth_code varchar2(9);
Begin
v_bn := :TAC.bn;
v_bn_exists := CG$BP_AUTH_CODE.bn_exists(v_bn);
if v_bn_exists = 1 then
.....
if v_has_auth_code = 1 then
...
else
v_auth_code := CG$BP_AUTH_CODE.make_auth_code;
--Error happening over here
insert into bp_auth_code (bn, code) values(v_bn, v_auth_code);
commit;
message(v_auth_code); -- I can see the value
end if;
else
....
end if;
End;
【问题讨论】:
-
您是否有一个触发器,可以将相同的值复制到具有相同名称、不同模式(总线)的表中。我的意思是,您确定您的表单在运行时连接到
bus架构吗?
标签: oracle oracle10g oracleforms