diff --git a/sql3/planner/compileshow.go b/sql3/planner/compileshow.go index 129f00cc0..ab4203106 100644 --- a/sql3/planner/compileshow.go +++ b/sql3/planner/compileshow.go @@ -94,9 +94,9 @@ func (p *ExecutionPlanner) compileShowTablesStatement(ctx context.Context, stmt columns := []types.PlanExpression{ &qualifiedRefPlanExpression{ tableName: "fb_tables", - columnName: "onject_id", + columnName: string(dax.PrimaryKeyFieldName), columnIndex: 0, - dataType: parser.NewDataTypeInt(), + dataType: parser.NewDataTypeString(), }, &qualifiedRefPlanExpression{ tableName: "fb_tables", diff --git a/sql3/test/defs/defs_sql1.go b/sql3/test/defs/defs_sql1.go index d0fa34b6c..736e00193 100644 --- a/sql3/test/defs/defs_sql1.go +++ b/sql3/test/defs/defs_sql1.go @@ -478,6 +478,7 @@ var sql1TestsQueries = TableTest{ hdr("cache_type", fldTypeString), hdr("cache_size", fldTypeInt), hdr("scale", fldTypeInt), + hdr("length", fldTypeInt), hdr("min", fldTypeInt), hdr("max", fldTypeInt), hdr("timeunit", fldTypeString),