mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
fix(Bun.SQL) fix postgres error handling when pipelining and state reset (#22505)
### What does this PR do? Fixes: https://github.com/oven-sh/bun/issues/22395 ### How did you verify your code works? Test
This commit is contained in:
@@ -60,7 +60,7 @@ pub fn createPostgresError(
|
||||
message: []const u8,
|
||||
options: PostgresErrorOptions,
|
||||
) bun.JSError!JSValue {
|
||||
const opts_obj = JSValue.createEmptyObject(globalObject, 18);
|
||||
const opts_obj = JSValue.createEmptyObject(globalObject, 0);
|
||||
opts_obj.ensureStillAlive();
|
||||
opts_obj.put(globalObject, jsc.ZigString.static("code"), try bun.String.createUTF8ForJS(globalObject, options.code));
|
||||
inline for (std.meta.fields(PostgresErrorOptions)) |field| {
|
||||
|
||||
Reference in New Issue
Block a user