File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.47 2005/11/23 04:23:28 momjian Exp $
2
+ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.48 2005/11/23 12:19:12 ishii Exp $
3
3
*
4
4
* pgbench: a simple benchmark program for PostgreSQL
5
5
* written by Tatsuo Ishii
@@ -886,11 +886,17 @@ process_file(char *filename)
886
886
{
887
887
Command * commands ;
888
888
889
- commands = process_commands (buf );
890
- if (commands == NULL )
891
- {
892
- fclose (fd );
893
- return false;
889
+
890
+ if (strncmp (buf , "\n" , 1 ) != 0 ) {
891
+ commands = process_commands (buf );
892
+ if (commands == NULL )
893
+ {
894
+ fclose (fd );
895
+ return false;
896
+ }
897
+ } else {
898
+ lineno ++ ;
899
+ continue ;
894
900
}
895
901
896
902
my_commands [lineno ] = commands ;
You can’t perform that action at this time.
0 commit comments