Fix write_copy_in not being awaited in simple query
This commit is contained in:
parent
c2ff6b4359
commit
d959a80678
3
wire.ts
3
wire.ts
@ -1235,6 +1235,7 @@ function wire_impl(
|
||||
continue;
|
||||
|
||||
case CopyOutResponse.type:
|
||||
case CopyBothResponse.type:
|
||||
await read_copy_out(stdout), (stdout = null);
|
||||
continue;
|
||||
}
|
||||
@ -1288,7 +1289,7 @@ function wire_impl(
|
||||
() => {
|
||||
log("debug", { query }, `executing simple query`);
|
||||
write(QueryMessage, { query });
|
||||
write_copy_in(stdin);
|
||||
return write_copy_in(stdin);
|
||||
},
|
||||
async () => {
|
||||
for (let chunks = [], err; ; ) {
|
||||
|
Loading…
Reference in New Issue
Block a user