Skip to content

Commit c95c182

Browse files
committed
minor variable cleanup
1 parent 43d0c56 commit c95c182

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

middle-pgsql.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,10 +991,9 @@ void middle_pgsql_t::start(const options_t *out_options_)
991991
// We use a connection per table to enable the use of COPY */
992992
for (auto &table : tables) {
993993
table.connect(out_options);
994-
PGconn* sql_conn = table.sql_conn;
995994

996995
if (dropcreate) {
997-
pgsql_exec(sql_conn, PGRES_COMMAND_OK,
996+
pgsql_exec(table.sql_conn, PGRES_COMMAND_OK,
998997
"DROP TABLE IF EXISTS %s CASCADE", table.name());
999998
}
1000999

0 commit comments

Comments
 (0)