Skip to content

Commit

Permalink
fix: malformed FieldPacket (#2280)
Browse files Browse the repository at this point in the history
* fix: Malformed FieldPacket

* fix: change to optional typeo

* fix: add columnType

* fix: type props to optional
  • Loading branch information
yutak23 authored Nov 21, 2023
1 parent 1aec4fd commit 8831e09
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions typings/mysql/lib/protocol/packets/FieldPacket.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,25 @@ declare interface FieldPacket {
name: 'FieldPacket';
};
catalog: string;
charsetNr: number;
db: string;
charsetNr?: number;
db?: string;
schema?: string;
characterSet?: number;
decimals: number;
default: any;
flags: number;
length: number;
default?: any;
flags: number | string[];
length?: number;
name: string;
orgName: string;
orgTable: string;
protocol41: boolean;
protocol41?: boolean;
table: string;
type: number;
zerofill: boolean;
type?: number;
columnType?: number
zerofill?: boolean;
typeName?: string;
encoding?: string;
columnLength?: number;
}

export { FieldPacket };

0 comments on commit 8831e09

Please sign in to comment.