Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
78b13fee
Commit
78b13fee
authored
Oct 19, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pltcl self-test for recent changes to elog.
parent
ba7c2d2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
src/pl/tcl/test/runtest
src/pl/tcl/test/runtest
+1
-0
src/pl/tcl/test/test_setup.sql
src/pl/tcl/test/test_setup.sql
+5
-5
No files found.
src/pl/tcl/test/runtest
View file @
78b13fee
...
...
@@ -20,6 +20,7 @@ psql -q -n -e $DBNAME <test_queries.sql > test.out 2>&1
if
diff test.expected test.out
>
/dev/null 2>&1
;
then
echo
" Tests passed O.K."
rm
test.out
else
echo
" Tests failed - look at diffs between"
echo
" test.expected and test.out"
...
...
src/pl/tcl/test/test_setup.sql
View file @
78b13fee
...
...
@@ -120,7 +120,7 @@ create function trig_pkey1_before() returns trigger as '
#
spi_execp -count 1 $GD(plan_pkey1) [list $NEW(key1) $NEW(key2)]
if {$ret == "t"} {
elog
WARN
\\
elog
ERROR
\\
"duplicate key
''
$NEW(key1)
''
,
''
$NEW(key2)
''
for T_pkey1"
}
}
...
...
@@ -131,7 +131,7 @@ create function trig_pkey1_before() returns trigger as '
#
set n [spi_execp -count 1 $GD(plan_dta1) [list $OLD(key1) $OLD(key2)]]
if {$n > 0} {
elog
WARN
\\
elog
ERROR
\\
"key
''
$OLD(key1)
''
,
''
$OLD(key2)
''
referenced by T_dta1"
}
}
...
...
@@ -173,7 +173,7 @@ create function trig_pkey2_before() returns trigger as '
#
set n [spi_execp -count 1 $GD(plan_pkey2) [list $NEW(key1) $NEW(key2)]]
if {$n > 0} {
elog
WARN
\\
elog
ERROR
\\
"duplicate key
''
$NEW(key1)
''
,
''
$NEW(key2)
''
for T_pkey2"
}
...
...
@@ -325,7 +325,7 @@ create function check_primkey() returns trigger as '
and A.attname =
''
[quote $key]
''
\\
and A.atttypid = T.oid"]
if {$n != 1} {
elog
WARN
"table $keyrel doesn
''
t have a field named $key"
elog
ERROR
"table $keyrel doesn
''
t have a field named $key"
}
#
...
...
@@ -362,7 +362,7 @@ create function check_primkey() returns trigger as '
#
set n [spi_execp -count 1 $GD($plankey) $arglist]
if {$n <= 0} {
elog
WARN
"key for $GD($planrel) not in $keyrel"
elog
ERROR
"key for $GD($planrel) not in $keyrel"
}
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment