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
b060c878
Commit
b060c878
authored
Apr 09, 2009
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Treat EOF like \n for line-counting purposes in ParseConfigFile,
per bug #4752. Fujii Masao
parent
03cd7571
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/backend/utils/misc/guc-file.l
src/backend/utils/misc/guc-file.l
+8
-3
No files found.
src/backend/utils/misc/guc-file.l
View file @
b060c878
...
...
@@ -4,7 +4,7 @@
*
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
*
* $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.5
8 2009/01/01 17:23:53 momjian
Exp $
* $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.5
9 2009/04/09 14:21:02 tgl
Exp $
*/
%{
...
...
@@ -446,8 +446,13 @@ ParseConfigFile(const char *config_file, const char *calling_file,
/* now we'd like an end of line, or possibly EOF */
token = yylex();
if (token != GUC_EOL && token != 0)
goto parse_error;
if (token != GUC_EOL)
{
if (token != 0)
goto parse_error;
/* treat EOF like \n for line numbering purposes, cf bug 4752 */
ConfigFileLineno++;
}
/* OK, process the option name and value */
if (guc_name_compare(opt_name, "include") == 0)
...
...
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