Skip to content

Commit 91da249

Browse files
committed
fix type on information_schema
1 parent e151ce4 commit 91da249

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/information_schema/tables_table.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var tablesSchema = Schema{
6565
func tablesRowIter(ctx *Context, cat Catalog) (RowIter, error) {
6666
var rows []Row
6767
var (
68-
tableType string
68+
tableType uint16
6969
tableRows uint64
7070
avgRowLength uint64
7171
dataLength uint64
@@ -82,9 +82,9 @@ func tablesRowIter(ctx *Context, cat Catalog) (RowIter, error) {
8282

8383
for _, db := range databases {
8484
if db.Database.Name() == InformationSchemaDatabaseName {
85-
tableType = "SYSTEM VIEW"
85+
tableType = 3 // SYSTEM_VIEW
8686
} else {
87-
tableType = "BASE TABLE"
87+
tableType = 1 // BASE_TABLE
8888
engine = "InnoDB"
8989
rowFormat = "Dynamic"
9090
}

0 commit comments

Comments
 (0)