Skip to content

Commit cc5928b

Browse files
authored
feat(server): #346 removed unnamed portals after on_exec (#348)
1 parent d1c8f23 commit cc5928b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/api/query.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,10 @@ pub trait ExtendedQueryHandler: Send + Sync {
308308
client.set_transaction_status(transaction_status);
309309
};
310310

311+
if portal_name == DEFAULT_NAME {
312+
client.portal_store().rm_portal(portal_name);
313+
}
314+
311315
Ok(())
312316
} else {
313317
Err(PgWireError::PortalNotFound(portal_name.to_owned()))

0 commit comments

Comments
 (0)