Skip to content

Commit 149a3e9

Browse files
WolfeeLuoluofei
andauthored
enable mysql column description (sqlpad#1041)
Co-authored-by: luofei <[email protected]>
1 parent 79b86da commit 149a3e9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/drivers/mysql/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ function getSchemaSql(database) {
2121
t.table_schema,
2222
t.table_name,
2323
c.column_name,
24-
c.data_type
24+
c.data_type,
25+
c.column_comment as column_description
2526
FROM
2627
INFORMATION_SCHEMA.TABLES t
2728
JOIN INFORMATION_SCHEMA.COLUMNS c ON t.table_schema = c.table_schema AND t.table_name = c.table_name

0 commit comments

Comments
 (0)