Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CBRD-25719] 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. #2019

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sql/_01_object/_10_system_table/_022_db_trigger/answers/1037.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sql/_01_object/_10_system_table/_022_db_trigger/answers/1038.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions sql/_13_issues/_17_1h/answers/cbrd_21311.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner2.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner3.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
16 changes: 8 additions & 8 deletions sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/change_owner4.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create1.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/create2.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename2.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename3.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions sql/_33_elderberry/cbrd_23844/cbrd_24195/answers/rename4.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
14 changes: 7 additions & 7 deletions sql/_35_fig_cake/cbrd_25352/answers/06_javasp_with_trigger.answer
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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]

===================================================

Expand All @@ -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]()

===================================================
Expand All @@ -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]()

Expand All @@ -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]

===================================================

Expand All @@ -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]

===================================================
Expand Down