We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43d0c56 commit c95c182Copy full SHA for c95c182
middle-pgsql.cpp
@@ -991,10 +991,9 @@ void middle_pgsql_t::start(const options_t *out_options_)
991
// We use a connection per table to enable the use of COPY */
992
for (auto &table : tables) {
993
table.connect(out_options);
994
- PGconn* sql_conn = table.sql_conn;
995
996
if (dropcreate) {
997
- pgsql_exec(sql_conn, PGRES_COMMAND_OK,
+ pgsql_exec(table.sql_conn, PGRES_COMMAND_OK,
998
"DROP TABLE IF EXISTS %s CASCADE", table.name());
999
}
1000
0 commit comments