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
7abe764f
Commit
7abe764f
authored
Jul 20, 2007
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix regression tests for PL/pgSQL error message changes
parent
04fbe29a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/test/regress/expected/plpgsql.out
src/test/regress/expected/plpgsql.out
+10
-10
No files found.
src/test/regress/expected/plpgsql.out
View file @
7abe764f
...
@@ -2067,13 +2067,13 @@ end$$ language plpgsql;
...
@@ -2067,13 +2067,13 @@ end$$ language plpgsql;
select test_variable_storage();
select test_variable_storage();
NOTICE: should see this
NOTICE: should see this
CONTEXT: SQL statement "SELECT trap_zero_divide(-100)"
CONTEXT: SQL statement "SELECT trap_zero_divide(-100)"
PL/pgSQL function "test_variable_storage" line 7 at
perform
PL/pgSQL function "test_variable_storage" line 7 at
PERFORM
NOTICE: should see this only if -100 <> 0
NOTICE: should see this only if -100 <> 0
CONTEXT: SQL statement "SELECT trap_zero_divide(-100)"
CONTEXT: SQL statement "SELECT trap_zero_divide(-100)"
PL/pgSQL function "test_variable_storage" line 7 at
perform
PL/pgSQL function "test_variable_storage" line 7 at
PERFORM
NOTICE: should see this only if -100 fits in smallint
NOTICE: should see this only if -100 fits in smallint
CONTEXT: SQL statement "SELECT trap_zero_divide(-100)"
CONTEXT: SQL statement "SELECT trap_zero_divide(-100)"
PL/pgSQL function "test_variable_storage" line 7 at
perform
PL/pgSQL function "test_variable_storage" line 7 at
PERFORM
test_variable_storage
test_variable_storage
-----------------------
-----------------------
123456789012
123456789012
...
@@ -2302,7 +2302,7 @@ end;
...
@@ -2302,7 +2302,7 @@ end;
$$ language plpgsql;
$$ language plpgsql;
select raise_test1(5);
select raise_test1(5);
ERROR: too many parameters specified for RAISE
ERROR: too many parameters specified for RAISE
CONTEXT: PL/pgSQL function "raise_test1" line 2 at
raise
CONTEXT: PL/pgSQL function "raise_test1" line 2 at
RAISE
create function raise_test2(int) returns int as $$
create function raise_test2(int) returns int as $$
begin
begin
raise notice 'This message has too few parameters: %, %, %', $1, $1;
raise notice 'This message has too few parameters: %, %, %', $1, $1;
...
@@ -2311,7 +2311,7 @@ end;
...
@@ -2311,7 +2311,7 @@ end;
$$ language plpgsql;
$$ language plpgsql;
select raise_test2(10);
select raise_test2(10);
ERROR: too few parameters specified for RAISE
ERROR: too few parameters specified for RAISE
CONTEXT: PL/pgSQL function "raise_test2" line 2 at
raise
CONTEXT: PL/pgSQL function "raise_test2" line 2 at
RAISE
--
--
-- reject function definitions that contain malformed SQL queries at
-- reject function definitions that contain malformed SQL queries at
-- compile-time, where possible
-- compile-time, where possible
...
@@ -2430,7 +2430,7 @@ ERROR: column "sqlstate" does not exist
...
@@ -2430,7 +2430,7 @@ ERROR: column "sqlstate" does not exist
LINE 1: SELECT sqlstate
LINE 1: SELECT sqlstate
^
^
QUERY: SELECT sqlstate
QUERY: SELECT sqlstate
CONTEXT: PL/pgSQL function "excpt_test1" line 2 at
raise
CONTEXT: PL/pgSQL function "excpt_test1" line 2 at
RAISE
create function excpt_test2() returns void as $$
create function excpt_test2() returns void as $$
begin
begin
begin
begin
...
@@ -2445,7 +2445,7 @@ ERROR: column "sqlstate" does not exist
...
@@ -2445,7 +2445,7 @@ ERROR: column "sqlstate" does not exist
LINE 1: SELECT sqlstate
LINE 1: SELECT sqlstate
^
^
QUERY: SELECT sqlstate
QUERY: SELECT sqlstate
CONTEXT: PL/pgSQL function "excpt_test2" line 4 at
raise
CONTEXT: PL/pgSQL function "excpt_test2" line 4 at
RAISE
create function excpt_test3() returns void as $$
create function excpt_test3() returns void as $$
begin
begin
begin
begin
...
@@ -2922,7 +2922,7 @@ begin
...
@@ -2922,7 +2922,7 @@ begin
end$$ language plpgsql;
end$$ language plpgsql;
select footest();
select footest();
ERROR: query returned no rows
ERROR: query returned no rows
CONTEXT: PL/pgSQL function "footest" line 4 at
execute
statement
CONTEXT: PL/pgSQL function "footest" line 4 at
EXECUTE
statement
create or replace function footest() returns void as $$
create or replace function footest() returns void as $$
declare x record;
declare x record;
begin
begin
...
@@ -2932,7 +2932,7 @@ begin
...
@@ -2932,7 +2932,7 @@ begin
end$$ language plpgsql;
end$$ language plpgsql;
select footest();
select footest();
ERROR: query returned more than one row
ERROR: query returned more than one row
CONTEXT: PL/pgSQL function "footest" line 4 at
execute
statement
CONTEXT: PL/pgSQL function "footest" line 4 at
EXECUTE
statement
drop function footest();
drop function footest();
-- test scrollable cursor support
-- test scrollable cursor support
create function sc_test() returns setof integer as $$
create function sc_test() returns setof integer as $$
...
@@ -2976,7 +2976,7 @@ $$ language plpgsql;
...
@@ -2976,7 +2976,7 @@ $$ language plpgsql;
select * from sc_test(); -- fails because of NO SCROLL specification
select * from sc_test(); -- fails because of NO SCROLL specification
ERROR: cursor can only scan forward
ERROR: cursor can only scan forward
HINT: Declare it with SCROLL option to enable backward scan.
HINT: Declare it with SCROLL option to enable backward scan.
CONTEXT: PL/pgSQL function "sc_test" line 6 at
fetch
CONTEXT: PL/pgSQL function "sc_test" line 6 at
FETCH
create or replace function sc_test() returns setof integer as $$
create or replace function sc_test() returns setof integer as $$
declare
declare
c refcursor;
c refcursor;
...
...
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