mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 20:39:05 +00:00
zig: handle when coerceToInt32 and coerceToInt64 throw (#20655)
This commit is contained in:
@@ -972,12 +972,12 @@ pub const PostgresRequest = struct {
|
||||
},
|
||||
.int4 => {
|
||||
const l = try writer.length();
|
||||
try writer.int4(@bitCast(value.coerceToInt32(globalObject)));
|
||||
try writer.int4(@bitCast(try value.coerceToInt32(globalObject)));
|
||||
try l.writeExcludingSelf();
|
||||
},
|
||||
.int4_array => {
|
||||
const l = try writer.length();
|
||||
try writer.int4(@bitCast(value.coerceToInt32(globalObject)));
|
||||
try writer.int4(@bitCast(try value.coerceToInt32(globalObject)));
|
||||
try l.writeExcludingSelf();
|
||||
},
|
||||
.float8 => {
|
||||
|
||||
Reference in New Issue
Block a user