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"
#
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"
}
}
#
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"
}
}
#
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"
}
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"
}
#
#
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"
}
#