1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| SQL> create or replace procedure p1 is
2 begin
3 insert into t1 (mydate) values (to_date('20080101', 'YYYYMMDD'));
4 end;
5 /
Procedure created.
SQL> exec dbms_warning.add_warning_setting_cat('ALL', 'ENABLE', 'SESSION')
PL/SQL procedure successfully completed.
SQL> create or replace procedure p1 is
2 begin
3 insert into t1 (mydate) values (to_date('20080101', 'YYYYMMDD'));
4 end;
5 /
SP2-0804: Procedure created with compilation warnings
SQL> show err
Errors for PROCEDURE P1:
LINE/COL ERROR
-------- -----------------------------------------------------------------
3/35 PLW-07202: bind type would result in conversion away from column
type
3/55 PLW-07202: bind type would result in conversion away from column
type
SQL> create or replace procedure p1 is
2 d date;
3 begin
4 d := to_date('20080101', 'YYYYMMDD');
5 insert into t1 (mydate) values (d);
6 end;
7 /
Procedure created. |
Partager