Skip to content

Commit 8831e09

Browse files
authored
fix: malformed FieldPacket (#2280)
* fix: Malformed FieldPacket * fix: change to optional typeo * fix: add columnType * fix: type props to optional
1 parent 1aec4fd commit 8831e09

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

typings/mysql/lib/protocol/packets/FieldPacket.d.ts

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,25 @@ declare interface FieldPacket {
33
name: 'FieldPacket';
44
};
55
catalog: string;
6-
charsetNr: number;
7-
db: string;
6+
charsetNr?: number;
7+
db?: string;
8+
schema?: string;
9+
characterSet?: number;
810
decimals: number;
9-
default: any;
10-
flags: number;
11-
length: number;
11+
default?: any;
12+
flags: number | string[];
13+
length?: number;
1214
name: string;
1315
orgName: string;
1416
orgTable: string;
15-
protocol41: boolean;
17+
protocol41?: boolean;
1618
table: string;
17-
type: number;
18-
zerofill: boolean;
19+
type?: number;
20+
columnType?: number
21+
zerofill?: boolean;
22+
typeName?: string;
23+
encoding?: string;
24+
columnLength?: number;
1925
}
2026

2127
export { FieldPacket };

0 commit comments

Comments
 (0)