Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
7a6676d9
Commit
7a6676d9
authored
18 years ago
by
Andrew Dunstan
Browse files
Options
Downloads
Patches
Plain Diff
fix typo
parent
3a9ae3d2
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/test/regress/expected/triggers.out
+2
-1
2 additions, 1 deletion
src/test/regress/expected/triggers.out
src/test/regress/sql/triggers.sql
+2
-1
2 additions, 1 deletion
src/test/regress/sql/triggers.sql
with
4 additions
and
2 deletions
src/test/regress/expected/triggers.out
+
2
−
1
View file @
7a6676d9
...
@@ -403,7 +403,7 @@ begin
...
@@ -403,7 +403,7 @@ begin
relid := TG_relid::regclass;
relid := TG_relid::regclass;
-- plpgsql can't discover it
'
s trigger data in a hash like perl and python
-- plpgsql can't discover its trigger data in a hash like perl and python
-- can, or by a sort of reflection like tcl can,
-- can, or by a sort of reflection like tcl can,
-- so we have to hard code the names.
-- so we have to hard code the names.
raise NOTICE 'TG_NAME: %', TG_name;
raise NOTICE 'TG_NAME: %', TG_name;
...
@@ -433,6 +433,7 @@ begin
...
@@ -433,6 +433,7 @@ begin
if TG_OP != 'DELETE' then
if TG_OP != 'DELETE' then
raise NOTICE 'NEW: %', NEW;
raise NOTICE 'NEW: %', NEW;
end if;
end if;
if TG_OP = 'DELETE' then
if TG_OP = 'DELETE' then
return OLD;
return OLD;
else
else
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/sql/triggers.sql
+
2
−
1
View file @
7a6676d9
...
@@ -314,7 +314,7 @@ begin
...
@@ -314,7 +314,7 @@ begin
relid
:
=
TG_relid
::
regclass
;
relid
:
=
TG_relid
::
regclass
;
-- plpgsql can't discover it
'
s trigger data in a hash like perl and python
-- plpgsql can't discover its trigger data in a hash like perl and python
-- can, or by a sort of reflection like tcl can,
-- can, or by a sort of reflection like tcl can,
-- so we have to hard code the names.
-- so we have to hard code the names.
raise
NOTICE
'TG_NAME: %'
,
TG_name
;
raise
NOTICE
'TG_NAME: %'
,
TG_name
;
...
@@ -344,6 +344,7 @@ begin
...
@@ -344,6 +344,7 @@ begin
if
TG_OP
!=
'DELETE'
then
if
TG_OP
!=
'DELETE'
then
raise
NOTICE
'NEW: %'
,
NEW
;
raise
NOTICE
'NEW: %'
,
NEW
;
end
if
;
end
if
;
if
TG_OP
=
'DELETE'
then
if
TG_OP
=
'DELETE'
then
return
OLD
;
return
OLD
;
else
else
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment