Skip to content

Commit 523b158

Browse files
committed
fix: fixing that we cannot edit longtext and text field
1 parent 3ab6811 commit 523b158

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/drivers/MySQLConnection.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,12 @@ function mapHeaderType(column: ColumnDefinition): QueryResultHeader {
5050
type = { type: 'number' };
5151
} else if ([0, 246].includes(column.type)) {
5252
type = { type: 'decimal' };
53-
} else if ([255, 252, 250, 251, 252].includes(column.type)) {
53+
} else if ([255, 250, 251].includes(column.type)) {
5454
type = { type: 'other' };
5555
}
5656

57+
console.log(column.name, column.type, type);
58+
5759
const databaseNameLength = column._buf[13];
5860
const databaseName =
5961
databaseNameLength > 0

0 commit comments

Comments
 (0)