mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 11:59:00 +00:00
Refactor BabyList (#22502)
(For internal tracking: fixes STAB-1129, STAB-1145, STAB-1146, STAB-1150, STAB-1126, STAB-1147, STAB-1148, STAB-1149, STAB-1158) --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Jarred Sumner <jarred@jarredsumner.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -309,7 +309,7 @@ pub fn getConnected(this: *MySQLConnection, _: *jsc.JSGlobalObject) JSValue {
|
||||
pub fn doClose(this: *MySQLConnection, globalObject: *jsc.JSGlobalObject, _: *jsc.CallFrame) bun.JSError!JSValue {
|
||||
_ = globalObject;
|
||||
this.disconnect();
|
||||
this.write_buffer.deinit(bun.default_allocator);
|
||||
this.write_buffer.clearAndFree(bun.default_allocator);
|
||||
|
||||
return .js_undefined;
|
||||
}
|
||||
@@ -1913,7 +1913,7 @@ pub fn handleResultSet(this: *MySQLConnection, comptime Context: type, reader: N
|
||||
fn close(this: *@This()) void {
|
||||
this.disconnect();
|
||||
this.unregisterAutoFlusher();
|
||||
this.write_buffer.deinit(bun.default_allocator);
|
||||
this.write_buffer.clearAndFree(bun.default_allocator);
|
||||
}
|
||||
|
||||
pub fn closeStatement(this: *MySQLConnection, statement: *MySQLStatement) !void {
|
||||
|
||||
Reference in New Issue
Block a user