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
baa6b22f
Commit
baa6b22f
authored
Nov 23, 2005
by
Tatsuo Ishii
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Having blank lines in -f scripts was causing silent failures.
per David Fetter
parent
aac96b89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
contrib/pgbench/pgbench.c
contrib/pgbench/pgbench.c
+12
-6
No files found.
contrib/pgbench/pgbench.c
View file @
baa6b22f
/*
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.4
7 2005/11/23 04:23:28 momjian
Exp $
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.4
8 2005/11/23 12:19:12 ishii
Exp $
*
* pgbench: a simple benchmark program for PostgreSQL
* written by Tatsuo Ishii
...
...
@@ -886,11 +886,17 @@ process_file(char *filename)
{
Command
*
commands
;
commands
=
process_commands
(
buf
);
if
(
commands
==
NULL
)
{
fclose
(
fd
);
return
false
;
if
(
strncmp
(
buf
,
"
\n
"
,
1
)
!=
0
)
{
commands
=
process_commands
(
buf
);
if
(
commands
==
NULL
)
{
fclose
(
fd
);
return
false
;
}
}
else
{
lineno
++
;
continue
;
}
my_commands
[
lineno
]
=
commands
;
...
...
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