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
2b031986
Commit
2b031986
authored
Sep 12, 2002
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid misleading error message when SET/RESET target variable name
doesn't match any known variable.
parent
7184a428
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+9
-5
No files found.
src/backend/utils/misc/guc.c
View file @
2b031986
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
* command, configuration file, and command line options.
* command, configuration file, and command line options.
* See src/backend/utils/misc/README for more information.
* See src/backend/utils/misc/README for more information.
*
*
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.9
4 2002/09/10 16:09:02
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.9
5 2002/09/12 14:03:45
tgl Exp $
*
*
* Copyright 2000 by PostgreSQL Global Development Group
* Copyright 2000 by PostgreSQL Global Development Group
* Written by Peter Eisentraut <peter_e@gmx.net>.
* Written by Peter Eisentraut <peter_e@gmx.net>.
...
@@ -2123,14 +2123,18 @@ flatten_set_variable_args(const char *name, List *args)
...
@@ -2123,14 +2123,18 @@ flatten_set_variable_args(const char *name, List *args)
StringInfoData
buf
;
StringInfoData
buf
;
List
*
l
;
List
*
l
;
/* Fast path if just DEFAULT */
/*
* Fast path if just DEFAULT. We do not check the variable name in
* this case --- necessary for RESET ALL to work correctly.
*/
if
(
args
==
NIL
)
if
(
args
==
NIL
)
return
NULL
;
return
NULL
;
/* Else get flags for the variable */
record
=
find_option
(
name
);
record
=
find_option
(
name
);
if
(
record
==
NULL
)
if
(
record
==
NULL
)
flags
=
0
;
/* default assumptions */
elog
(
ERROR
,
"'%s' is not a valid option name"
,
name
);
else
flags
=
record
->
flags
;
flags
=
record
->
flags
;
/* Complain if list input and non-list variable */
/* Complain if list input and non-list variable */
...
...
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