Skip to content

Commit 2e66cae

Browse files
committed
pgbench: Remove unused argument from create_sql_command().
Author: Yugo Nagata <[email protected]> Reviewed-by: Steven Niu <[email protected]> Discussion: https://postgr.es/m/[email protected]
1 parent 45f50c9 commit 2e66cae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pgbench/pgbench.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5599,7 +5599,7 @@ skip_sql_comments(char *sql_command)
55995599
* struct.
56005600
*/
56015601
static Command *
5602-
create_sql_command(PQExpBuffer buf, const char *source)
5602+
create_sql_command(PQExpBuffer buf)
56035603
{
56045604
Command *my_command;
56055605
char *p = skip_sql_comments(buf->data);
@@ -5992,7 +5992,7 @@ ParseScript(const char *script, const char *desc, int weight)
59925992
sr = psql_scan(sstate, &line_buf, &prompt);
59935993

59945994
/* If we collected a new SQL command, process that */
5995-
command = create_sql_command(&line_buf, desc);
5995+
command = create_sql_command(&line_buf);
59965996

59975997
/* store new command */
59985998
if (command)

0 commit comments

Comments
 (0)