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
314288fc
Commit
314288fc
authored
15 years ago
by
Alvaro Herrera
Browse files
Options
Downloads
Patches
Plain Diff
Avoid using trivial usernames in foreign_data regression test.
Author: Martin Pihlak
parent
b2734a0d
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/foreign_data.out
+8
-8
8 additions, 8 deletions
src/test/regress/expected/foreign_data.out
src/test/regress/sql/foreign_data.sql
+4
-4
4 additions, 4 deletions
src/test/regress/sql/foreign_data.sql
with
12 additions
and
12 deletions
src/test/regress/expected/foreign_data.out
+
8
−
8
View file @
314288fc
...
@@ -524,8 +524,8 @@ List of user mappings
...
@@ -524,8 +524,8 @@ List of user mappings
(0 rows)
(0 rows)
-- CREATE USER MAPPING
-- CREATE USER MAPPING
CREATE USER MAPPING FOR
baz SERVER s1;
-- ERROR
CREATE USER MAPPING FOR
regress_test_missing_role SERVER s1;
-- ERROR
ERROR: role "
baz
" does not exist
ERROR: role "
regress_test_missing_role
" does not exist
CREATE USER MAPPING FOR current_user SERVER s1; -- ERROR
CREATE USER MAPPING FOR current_user SERVER s1; -- ERROR
ERROR: server "s1" does not exist
ERROR: server "s1" does not exist
CREATE USER MAPPING FOR current_user SERVER s4;
CREATE USER MAPPING FOR current_user SERVER s4;
...
@@ -565,8 +565,8 @@ RESET ROLE;
...
@@ -565,8 +565,8 @@ RESET ROLE;
(7 rows)
(7 rows)
-- ALTER USER MAPPING
-- ALTER USER MAPPING
ALTER USER MAPPING FOR
bob
SERVER s4 OPTIONS (gotcha 'true');
-- ERROR
ALTER USER MAPPING FOR
regress_test_missing_role
SERVER s4 OPTIONS (gotcha 'true'); -- ERROR
ERROR: role "
bob
" does not exist
ERROR: role "
regress_test_missing_role
" does not exist
ALTER USER MAPPING FOR user SERVER ss4 OPTIONS (gotcha 'true'); -- ERROR
ALTER USER MAPPING FOR user SERVER ss4 OPTIONS (gotcha 'true'); -- ERROR
ERROR: server "ss4" does not exist
ERROR: server "ss4" does not exist
ALTER USER MAPPING FOR public SERVER s5 OPTIONS (gotcha 'true'); -- ERROR
ALTER USER MAPPING FOR public SERVER s5 OPTIONS (gotcha 'true'); -- ERROR
...
@@ -595,14 +595,14 @@ RESET ROLE;
...
@@ -595,14 +595,14 @@ RESET ROLE;
(7 rows)
(7 rows)
-- DROP USER MAPPING
-- DROP USER MAPPING
DROP USER MAPPING FOR
bob SERVER s4;
-- ERROR
DROP USER MAPPING FOR
regress_test_missing_role SERVER s4;
-- ERROR
ERROR: role "
bob
" does not exist
ERROR: role "
regress_test_missing_role
" does not exist
DROP USER MAPPING FOR user SERVER ss4;
DROP USER MAPPING FOR user SERVER ss4;
ERROR: server "ss4" does not exist
ERROR: server "ss4" does not exist
DROP USER MAPPING FOR public SERVER s7; -- ERROR
DROP USER MAPPING FOR public SERVER s7; -- ERROR
ERROR: user mapping "public" does not exist for the server
ERROR: user mapping "public" does not exist for the server
DROP USER MAPPING IF EXISTS FOR
bob
SERVER s4;
DROP USER MAPPING IF EXISTS FOR
regress_test_missing_role
SERVER s4;
NOTICE: role "
bob
" does not exist, skipping
NOTICE: role "
regress_test_missing_role
" does not exist, skipping
DROP USER MAPPING IF EXISTS FOR user SERVER ss4;
DROP USER MAPPING IF EXISTS FOR user SERVER ss4;
NOTICE: server does not exist, skipping
NOTICE: server does not exist, skipping
DROP USER MAPPING IF EXISTS FOR public SERVER s7;
DROP USER MAPPING IF EXISTS FOR public SERVER s7;
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/sql/foreign_data.sql
+
4
−
4
View file @
314288fc
...
@@ -204,7 +204,7 @@ DROP SERVER s3 CASCADE;
...
@@ -204,7 +204,7 @@ DROP SERVER s3 CASCADE;
\
deu
\
deu
-- CREATE USER MAPPING
-- CREATE USER MAPPING
CREATE
USER
MAPPING
FOR
baz
SERVER
s1
;
-- ERROR
CREATE
USER
MAPPING
FOR
regress_test_missing_role
SERVER
s1
;
-- ERROR
CREATE
USER
MAPPING
FOR
current_user
SERVER
s1
;
-- ERROR
CREATE
USER
MAPPING
FOR
current_user
SERVER
s1
;
-- ERROR
CREATE
USER
MAPPING
FOR
current_user
SERVER
s4
;
CREATE
USER
MAPPING
FOR
current_user
SERVER
s4
;
CREATE
USER
MAPPING
FOR
user
SERVER
s4
;
-- ERROR duplicate
CREATE
USER
MAPPING
FOR
user
SERVER
s4
;
-- ERROR duplicate
...
@@ -228,7 +228,7 @@ RESET ROLE;
...
@@ -228,7 +228,7 @@ RESET ROLE;
\
deu
\
deu
-- ALTER USER MAPPING
-- ALTER USER MAPPING
ALTER
USER
MAPPING
FOR
bob
SERVER
s4
OPTIONS
(
gotcha
'true'
);
-- ERROR
ALTER
USER
MAPPING
FOR
regress_test_missing_role
SERVER
s4
OPTIONS
(
gotcha
'true'
);
-- ERROR
ALTER
USER
MAPPING
FOR
user
SERVER
ss4
OPTIONS
(
gotcha
'true'
);
-- ERROR
ALTER
USER
MAPPING
FOR
user
SERVER
ss4
OPTIONS
(
gotcha
'true'
);
-- ERROR
ALTER
USER
MAPPING
FOR
public
SERVER
s5
OPTIONS
(
gotcha
'true'
);
-- ERROR
ALTER
USER
MAPPING
FOR
public
SERVER
s5
OPTIONS
(
gotcha
'true'
);
-- ERROR
ALTER
USER
MAPPING
FOR
current_user
SERVER
s8
OPTIONS
(
username
'test'
);
-- ERROR
ALTER
USER
MAPPING
FOR
current_user
SERVER
s8
OPTIONS
(
username
'test'
);
-- ERROR
...
@@ -241,10 +241,10 @@ RESET ROLE;
...
@@ -241,10 +241,10 @@ RESET ROLE;
\
deu
+
\
deu
+
-- DROP USER MAPPING
-- DROP USER MAPPING
DROP
USER
MAPPING
FOR
bob
SERVER
s4
;
-- ERROR
DROP
USER
MAPPING
FOR
regress_test_missing_role
SERVER
s4
;
-- ERROR
DROP
USER
MAPPING
FOR
user
SERVER
ss4
;
DROP
USER
MAPPING
FOR
user
SERVER
ss4
;
DROP
USER
MAPPING
FOR
public
SERVER
s7
;
-- ERROR
DROP
USER
MAPPING
FOR
public
SERVER
s7
;
-- ERROR
DROP
USER
MAPPING
IF
EXISTS
FOR
bob
SERVER
s4
;
DROP
USER
MAPPING
IF
EXISTS
FOR
regress_test_missing_role
SERVER
s4
;
DROP
USER
MAPPING
IF
EXISTS
FOR
user
SERVER
ss4
;
DROP
USER
MAPPING
IF
EXISTS
FOR
user
SERVER
ss4
;
DROP
USER
MAPPING
IF
EXISTS
FOR
public
SERVER
s7
;
DROP
USER
MAPPING
IF
EXISTS
FOR
public
SERVER
s7
;
CREATE
USER
MAPPING
FOR
public
SERVER
s8
;
CREATE
USER
MAPPING
FOR
public
SERVER
s8
;
...
...
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