Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions datafusion-postgres/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ impl SimpleQueryHandler for DfSessionService {
}

let mut results = vec![];
for statement in statements {
'stmt: for statement in statements {
// TODO: improve statement check by using statement directly
let query = statement.to_string();
let query_lower = query.to_lowercase().trim().to_string();
Expand All @@ -495,7 +495,8 @@ impl SimpleQueryHandler for DfSessionService {
.handle_query(&statement, &self.session_context, client)
.await
{
return result.map(|response| vec![response]);
results.push(result?);
break 'stmt;
}
}

Expand Down
Loading