Skip to content

Commit a373572

Browse files
committed
remove transaction state
1 parent 81d0f42 commit a373572

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

datafusion-postgres/src/handlers.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ pub trait QueryHook: Send + Sync {
4040
) -> Option<PgWireResult<Vec<Response>>>;
4141
}
4242

43-
#[derive(Debug, Clone, Copy, PartialEq)]
44-
pub enum TransactionState {
45-
None,
46-
Active,
47-
Failed,
48-
}
49-
5043
// Metadata keys for session-level settings
5144
const METADATA_STATEMENT_TIMEOUT: &str = "statement_timeout_ms";
5245

@@ -653,7 +646,7 @@ impl ExtendedQueryHandler for DfSessionService {
653646
.sql_parser
654647
.parse(sql)
655648
.map_err(|e| PgWireError::ApiError(Box::new(e)))?;
656-
649+
657650
if let Some(statement) = statements.into_iter().next() {
658651
let wrapped_statement = Statement::Statement(Box::new(statement));
659652
if let Some(result) = hook

0 commit comments

Comments
 (0)