From f7427be412a37d1115ffc66126069faffbe90b01 Mon Sep 17 00:00:00 2001 From: jongmin-won Date: Fri, 3 Jan 2025 17:23:47 +0900 Subject: [PATCH 1/2] Modify the TC answer sheet due to the fix for [user_schema] storage errors in the db_trigger catalog during trigger creation and loaddb execution. --- .../_022_db_trigger/answers/1037.answer | 2 +- .../_022_db_trigger/answers/1038.answer | 2 +- sql/_13_issues/_17_1h/answers/cbrd_21311.answer | 6 +++--- .../cbrd_24195/answers/change_owner2.answer | 4 ++-- .../cbrd_24195/answers/change_owner3.answer | 6 +++--- .../cbrd_24195/answers/change_owner4.answer | 16 ++++++++-------- .../cbrd_23844/cbrd_24195/answers/create1.answer | 2 +- .../cbrd_23844/cbrd_24195/answers/create2.answer | 2 +- .../cbrd_23844/cbrd_24195/answers/rename2.answer | 4 ++-- .../cbrd_23844/cbrd_24195/answers/rename3.answer | 4 ++-- .../cbrd_23844/cbrd_24195/answers/rename4.answer | 4 ++-- 11 files changed, 26 insertions(+), 26 deletions(-) mode change 100644 => 100755 sql/_01_object/_10_system_table/_022_db_trigger/answers/1037.answer mode change 100644 => 100755 sql/_01_object/_10_system_table/_022_db_trigger/answers/1038.answer mode change 100644 => 100755 sql/_13_issues/_17_1h/answers/cbrd_21311.answer mode change 100644 => 100755 sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner2.answer mode change 100644 => 100755 sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner3.answer mode change 100644 => 100755 sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner4.answer mode change 100644 => 100755 sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create1.answer mode change 100644 => 100755 sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create2.answer mode change 100644 => 100755 sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename2.answer mode change 100644 => 100755 sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename3.answer mode change 100644 => 100755 sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename4.answer diff --git a/sql/_01_object/_10_system_table/_022_db_trigger/answers/1037.answer b/sql/_01_object/_10_system_table/_022_db_trigger/answers/1037.answer old mode 100644 new mode 100755 index 2e339cf320..702897f6ac --- a/sql/_01_object/_10_system_table/_022_db_trigger/answers/1037.answer +++ b/sql/_01_object/_10_system_table/_022_db_trigger/answers/1037.answer @@ -27,7 +27,7 @@ null =================================================== owner name action_definition -db_user test_trigger insert into [dba.op_record] values ( CURRENT_USER , 'delete a new record from test_class', '2008-05-27 15:50:58') +db_user test_trigger insert into [dba.op_record] ([operator], [op_action], [op_time]) values ( CURRENT_USER , 'delete a new record from test_class', '2008-05-27 15:50:58') =================================================== 0 diff --git a/sql/_01_object/_10_system_table/_022_db_trigger/answers/1038.answer b/sql/_01_object/_10_system_table/_022_db_trigger/answers/1038.answer old mode 100644 new mode 100755 index 421a9407d0..3190df1278 --- a/sql/_01_object/_10_system_table/_022_db_trigger/answers/1038.answer +++ b/sql/_01_object/_10_system_table/_022_db_trigger/answers/1038.answer @@ -27,7 +27,7 @@ null =================================================== owner name action_definition action_time -db_user test_trigger insert into [dba.op_record] values ( CURRENT_USER , 'delete a new record from test_class', '2008-05-27 15:50:58') AFTER +db_user test_trigger insert into [dba.op_record] ([operator], [op_action], [op_time]) values ( CURRENT_USER , 'delete a new record from test_class', '2008-05-27 15:50:58') AFTER =================================================== 0 diff --git a/sql/_13_issues/_17_1h/answers/cbrd_21311.answer b/sql/_13_issues/_17_1h/answers/cbrd_21311.answer old mode 100644 new mode 100755 index 10fe27c665..2e238facb9 --- a/sql/_13_issues/_17_1h/answers/cbrd_21311.answer +++ b/sql/_13_issues/_17_1h/answers/cbrd_21311.answer @@ -67,9 +67,9 @@ attribute =================================================== name condition action_type action_definition comment -delete null 1 insert into [dba.CLASS] values (3) null -insert null 1 insert into [dba.CLASS] values (1) null -update null 1 insert into [dba.CLASS] values (2) null +delete null 1 insert into [dba.CLASS] ([attribute]) values (3) null +insert null 1 insert into [dba.CLASS] ([attribute]) values (1) null +update null 1 insert into [dba.CLASS] ([attribute]) values (2) null =================================================== 0 diff --git a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner2.answer b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner2.answer old mode 100644 new mode 100755 index b2463550e7..2635baa2c4 --- a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner2.answer +++ b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner2.answer @@ -13,7 +13,7 @@ null dba.t2 t2 DBA =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 0 @@ -26,7 +26,7 @@ null u1.t2 t2 U1 =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 diff --git a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner3.answer b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner3.answer old mode 100644 new mode 100755 index 3310d1e153..736407c70b --- a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner3.answer +++ b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner3.answer @@ -29,7 +29,7 @@ null u2.t2 t2 U2 =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 @@ -50,7 +50,7 @@ null u2.t2 t2 U2 =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 @@ -72,7 +72,7 @@ null u2.t2 t2 U2 =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 diff --git a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner4.answer b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner4.answer old mode 100644 new mode 100755 index 8dc9f9616b..9b4ef9e0a6 --- a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner4.answer +++ b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner4.answer @@ -41,15 +41,15 @@ dba.t1_ai_c1 t1_ai_c1 DBA Error:-1342 =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) -u2.trig2 trig2 U2 null insert into [u2.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) +u2.trig2 trig2 U2 null insert into [u2.t2] ([c1]) values ([obj].[c1]) =================================================== 0 =================================================== unique_name name owner.name target_class action_definition -dba.trig2 trig2 DBA null insert into [dba.t2] values ([obj].[c1]) -u2.trig2 trig2 U2 null insert into [u2.t2] values ([obj].[c1]) +dba.trig2 trig2 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) +u2.trig2 trig2 U2 null insert into [u2.t2] ([c1]) values ([obj].[c1]) =================================================== 1 @@ -63,8 +63,8 @@ null =================================================== unique_name name owner.name target_class action_definition -u1.trig2 trig2 U1 null insert into [dba.t2] values ([obj].[c1]) -u2.trig2 trig2 U2 null insert into [u2.t2] values ([obj].[c1]) +u1.trig2 trig2 U1 null insert into [dba.t2] ([c1]) values ([obj].[c1]) +u2.trig2 trig2 U2 null insert into [u2.t2] ([c1]) values ([obj].[c1]) =================================================== 1 @@ -77,8 +77,8 @@ c1 Error:-505 =================================================== unique_name name owner.name target_class action_definition -u1.trig2 trig2 U1 null insert into [dba.t2] values ([obj].[c1]) -u2.trig2 trig2 U2 null insert into [u2.t2] values ([obj].[c1]) +u1.trig2 trig2 U1 null insert into [dba.t2] ([c1]) values ([obj].[c1]) +u2.trig2 trig2 U2 null insert into [u2.t2] ([c1]) values ([obj].[c1]) =================================================== 1 diff --git a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create1.answer b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create1.answer old mode 100644 new mode 100755 index fbe05d6c6e..b3b97050a3 --- a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create1.answer +++ b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create1.answer @@ -20,7 +20,7 @@ u1.s1 s1 U1 0 =================================================== unique_name name owner.name target_class action_definition -u1.trig1 trig1 U1 null insert into [dba.t2] values ([obj].[c1]) +u1.trig1 trig1 U1 null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 diff --git a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create2.answer b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create2.answer old mode 100644 new mode 100755 index 91eede12f2..7865ade231 --- a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create2.answer +++ b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create2.answer @@ -30,7 +30,7 @@ u1.s1 s1 U1 0 =================================================== unique_name name owner.name target_class action_definition -u1.trig1 trig1 U1 null insert into [u2.t2] values ([obj].[c1]) +u1.trig1 trig1 U1 null insert into [u2.t2] ([c1]) values ([obj].[c1]) =================================================== 1 diff --git a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename2.answer b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename2.answer old mode 100644 new mode 100755 index 5f1926e1f8..650d544f6f --- a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename2.answer +++ b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename2.answer @@ -11,7 +11,7 @@ null dba.t2 t2 DBA =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 0 @@ -24,7 +24,7 @@ null dba.t4 t4 DBA =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 diff --git a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename3.answer b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename3.answer old mode 100644 new mode 100755 index aa91257a12..5eddf0c7bd --- a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename3.answer +++ b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename3.answer @@ -11,7 +11,7 @@ null dba.t2 t2 DBA =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 @@ -30,7 +30,7 @@ null dba.t4 t4 DBA =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 diff --git a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename4.answer b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename4.answer old mode 100644 new mode 100755 index 820e3eb1bb..f907bb571d --- a/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename4.answer +++ b/sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename4.answer @@ -17,7 +17,7 @@ null dba.t4 t4 DBA =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 @@ -38,7 +38,7 @@ null dba.t4 t4 DBA =================================================== unique_name name owner.name target_class action_definition -dba.trig1 trig1 DBA null insert into [dba.t2] values ([obj].[c1]) +dba.trig1 trig1 DBA null insert into [dba.t2] ([c1]) values ([obj].[c1]) =================================================== 1 From 35816e3eff61a750e2370f2008ebf86afca8f2e7 Mon Sep 17 00:00:00 2001 From: jongmin-won Date: Mon, 6 Jan 2025 15:38:32 +0900 Subject: [PATCH 2/2] A new test case has been added, and one failed test case has been fixed. --- .../answers/06_javasp_with_trigger.answer | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) mode change 100644 => 100755 sql/_35_fig_cake/cbrd_25352/answers/06_javasp_with_trigger.answer diff --git a/sql/_35_fig_cake/cbrd_25352/answers/06_javasp_with_trigger.answer b/sql/_35_fig_cake/cbrd_25352/answers/06_javasp_with_trigger.answer old mode 100644 new mode 100755 index f9b4628dc3..500e155b29 --- a/sql/_35_fig_cake/cbrd_25352/answers/06_javasp_with_trigger.answer +++ b/sql/_35_fig_cake/cbrd_25352/answers/06_javasp_with_trigger.answer @@ -54,7 +54,7 @@ trigger list =================================================== unique_name owner.name name action_definition dba.test_trigger1 DBA test_trigger1 call [add_user]('test_user') on class [db_user] -dba.test_trigger2 DBA test_trigger2 call [add_user](class [db_user], 'test_user2') +dba.test_trigger2 DBA test_trigger2 call [add_user]('test_user2') on class [db_user] =================================================== @@ -65,7 +65,7 @@ create test_trigger3: execute call dba.hello() =================================================== unique_name owner.name name action_definition dba.test_trigger1 DBA test_trigger1 call [add_user]('test_user') on class [db_user] -dba.test_trigger2 DBA test_trigger2 call [add_user](class [db_user], 'test_user2') +dba.test_trigger2 DBA test_trigger2 call [add_user]('test_user2') on class [db_user] dba.test_trigger3 DBA test_trigger3 call [dba].[hello]() =================================================== @@ -77,7 +77,7 @@ create test_trigger4: execute call public.hello() =================================================== unique_name owner.name name action_definition dba.test_trigger1 DBA test_trigger1 call [add_user]('test_user') on class [db_user] -dba.test_trigger2 DBA test_trigger2 call [add_user](class [db_user], 'test_user2') +dba.test_trigger2 DBA test_trigger2 call [add_user]('test_user2') on class [db_user] dba.test_trigger3 DBA test_trigger3 call [dba].[hello]() dba.test_trigger4 DBA test_trigger4 call [public].[HeLlo]() @@ -96,10 +96,10 @@ create test_trigger5: execute call m1(class tbl) =================================================== unique_name owner.name name action_definition dba.test_trigger1 DBA test_trigger1 call [add_user]('test_user') on class [db_user] -dba.test_trigger2 DBA test_trigger2 call [add_user](class [db_user], 'test_user2') +dba.test_trigger2 DBA test_trigger2 call [add_user]('test_user2') on class [db_user] dba.test_trigger3 DBA test_trigger3 call [dba].[hello]() dba.test_trigger4 DBA test_trigger4 call [public].[HeLlo]() -dba.test_trigger5 DBA test_trigger5 call [m1](class [dba.Tbl]) +dba.test_trigger5 DBA test_trigger5 call [m1]() on class [dba.Tbl] =================================================== @@ -110,10 +110,10 @@ create test_trigger6: execute call m1() =================================================== unique_name owner.name name action_definition dba.test_trigger1 DBA test_trigger1 call [add_user]('test_user') on class [db_user] -dba.test_trigger2 DBA test_trigger2 call [add_user](class [db_user], 'test_user2') +dba.test_trigger2 DBA test_trigger2 call [add_user]('test_user2') on class [db_user] dba.test_trigger3 DBA test_trigger3 call [dba].[hello]() dba.test_trigger4 DBA test_trigger4 call [public].[HeLlo]() -dba.test_trigger5 DBA test_trigger5 call [m1](class [dba.Tbl]) +dba.test_trigger5 DBA test_trigger5 call [m1]() on class [dba.Tbl] dba.test_trigger6 DBA test_trigger6 call [m1]() on class [dba.tbl] ===================================================