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
b6966d46
Commit
b6966d46
authored
Jun 14, 2017
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use DEFACLOBJ_ macros in error message instead of hardcoding
parent
4e88fe8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
5 deletions
+10
-5
src/backend/catalog/objectaddress.c
src/backend/catalog/objectaddress.c
+7
-2
src/test/regress/expected/object_address.out
src/test/regress/expected/object_address.out
+3
-3
No files found.
src/backend/catalog/objectaddress.c
View file @
b6966d46
...
...
@@ -1849,8 +1849,13 @@ get_object_address_defacl(List *object, bool missing_ok)
default:
ereport
(
ERROR
,
(
errcode
(
ERRCODE_INVALID_PARAMETER_VALUE
),
errmsg
(
"unrecognized default ACL object type %c"
,
objtype
),
errhint
(
"Valid object types are
\"
r
\"
,
\"
S
\"
,
\"
f
\"
,
\"
T
\"
and
\"
s
\"
."
)));
errmsg
(
"unrecognized default ACL object type
\"
%c
\"
"
,
objtype
),
errhint
(
"Valid object types are
\"
%c
\"
,
\"
%c
\"
,
\"
%c
\"
,
\"
%c
\"
,
\"
%c
\"
."
,
DEFACLOBJ_RELATION
,
DEFACLOBJ_SEQUENCE
,
DEFACLOBJ_FUNCTION
,
DEFACLOBJ_TYPE
,
DEFACLOBJ_NAMESPACE
)));
}
/*
...
...
src/test/regress/expected/object_address.out
View file @
b6966d46
...
...
@@ -274,11 +274,11 @@ WARNING: error for user mapping,{addr_nsp,zwei},{integer}: user mapping for use
WARNING: error for user mapping,{eins,zwei,drei},{}: argument list length must be exactly 1
WARNING: error for user mapping,{eins,zwei,drei},{integer}: user mapping for user "eins" on server "integer" does not exist
WARNING: error for default acl,{eins},{}: argument list length must be exactly 1
WARNING: error for default acl,{eins},{integer}: unrecognized default ACL object type
i
WARNING: error for default acl,{eins},{integer}: unrecognized default ACL object type
"i"
WARNING: error for default acl,{addr_nsp,zwei},{}: argument list length must be exactly 1
WARNING: error for default acl,{addr_nsp,zwei},{integer}: unrecognized default ACL object type
i
WARNING: error for default acl,{addr_nsp,zwei},{integer}: unrecognized default ACL object type
"i"
WARNING: error for default acl,{eins,zwei,drei},{}: argument list length must be exactly 1
WARNING: error for default acl,{eins,zwei,drei},{integer}: unrecognized default ACL object type
i
WARNING: error for default acl,{eins,zwei,drei},{integer}: unrecognized default ACL object type
"i"
WARNING: error for transform,{eins},{}: argument list length must be exactly 1
WARNING: error for transform,{eins},{integer}: type "eins" does not exist
WARNING: error for transform,{addr_nsp,zwei},{}: name list length must be exactly 1
...
...
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