Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cirospaciari committed Jan 29, 2025
1 parent 55e74b1 commit eb74013
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sql/postgres.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2505,7 +2505,6 @@ pub const PostgresSQLConnection = struct {
// statement is pending, lets write/parse it
var query_str = req.query.toUTF8(bun.default_allocator);
defer query_str.deinit();
stmt.status = .parsing;
const has_params = stmt.signature.fields.len > 0;
// If it does not have params, we can write and execute immediately in one go
if (!has_params) {
Expand All @@ -2520,6 +2519,8 @@ pub const PostgresSQLConnection = struct {
this.requests.discard(1);
continue;
};
stmt.status = .parsing;

any = true;
return any;
}
Expand All @@ -2537,6 +2538,7 @@ pub const PostgresSQLConnection = struct {
this.requests.discard(1);
continue;
};
stmt.status = .parsing;
any = true;
return any;
},
Expand Down

0 comments on commit eb74013

Please sign in to comment.