@@ -35,7 +35,7 @@ var StatisticsQueries = []ScriptTest{
3535 SkipResultCheckOnServerEngine : true , // the non-interface types are not identified over the wire result
3636 Query : "SELECT * FROM information_schema.column_statistics" ,
3737 Expected : []sql.Row {
38- {"mydb" , "t" , "i" , stats .NewStatistic (3 , 3 , 0 , 24 , time .Now (), sql .NewStatQualifier ("mydb" , "t" , "primary" ), []string {"i" }, []sql.Type {types .Int64 }, []sql.HistogramBucket {
38+ {"mydb" , "t" , "i" , stats .NewStatistic (3 , 3 , 0 , 24 , time .Now (), sql .NewStatQualifier ("mydb" , "" , " t" , "primary" ), []string {"i" }, []sql.Type {types .Int64 }, []sql.HistogramBucket {
3939 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {int64 (1 )}, nil , nil ),
4040 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {int64 (2 )}, nil , nil ),
4141 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {int64 (3 )}, nil , nil ),
@@ -60,7 +60,7 @@ var StatisticsQueries = []ScriptTest{
6060 SkipResultCheckOnServerEngine : true , // the non-interface types are not identified over the wire result
6161 Query : "SELECT * FROM information_schema.column_statistics" ,
6262 Expected : []sql.Row {
63- {"mydb" , "t" , "i" , stats .NewStatistic (40 , 40 , 1 , 0 , time .Now (), sql .NewStatQualifier ("mydb" , "t" , "primary" ), []string {"i" }, []sql.Type {types .Int64 }, []sql.HistogramBucket {
63+ {"mydb" , "t" , "i" , stats .NewStatistic (40 , 40 , 1 , 0 , time .Now (), sql .NewStatQualifier ("mydb" , "" , " t" , "primary" ), []string {"i" }, []sql.Type {types .Int64 }, []sql.HistogramBucket {
6464 stats .NewHistogramBucket (20 , 20 , 0 , 1 , sql.Row {float64 (50 )}, nil , nil ),
6565 stats .NewHistogramBucket (20 , 20 , 0 , 1 , sql.Row {float64 (80 )}, nil , nil ),
6666 }, sql .IndexClassDefault , nil ),
@@ -89,13 +89,13 @@ var StatisticsQueries = []ScriptTest{
8989 SkipResultCheckOnServerEngine : true , // the non-interface types are not identified over the wire result
9090 Query : "SELECT * FROM information_schema.column_statistics" ,
9191 Expected : []sql.Row {
92- {"mydb" , "t" , "i" , stats .NewStatistic (3 , 3 , 0 , 48 , time .Now (), sql .NewStatQualifier ("mydb" , "t" , "primary" ), []string {"i" }, []sql.Type {types .Int64 }, []sql.HistogramBucket {
92+ {"mydb" , "t" , "i" , stats .NewStatistic (3 , 3 , 0 , 48 , time .Now (), sql .NewStatQualifier ("mydb" , "" , " t" , "primary" ), []string {"i" }, []sql.Type {types .Int64 }, []sql.HistogramBucket {
9393 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {int64 (1 )}, nil , []sql.Row {}),
9494 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {int64 (2 )}, nil , []sql.Row {}),
9595 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {int64 (3 )}, nil , []sql.Row {}),
9696 }, sql .IndexClassDefault , nil ),
9797 },
98- {"mydb" , "t" , "j" , stats .NewStatistic (3 , 3 , 0 , 48 , time .Now (), sql .NewStatQualifier ("mydb" , "t" , "j" ), []string {"j" }, []sql.Type {types .Int64 }, []sql.HistogramBucket {
98+ {"mydb" , "t" , "j" , stats .NewStatistic (3 , 3 , 0 , 48 , time .Now (), sql .NewStatQualifier ("mydb" , "" , " t" , "j" ), []string {"j" }, []sql.Type {types .Int64 }, []sql.HistogramBucket {
9999 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {int64 (4 )}, nil , []sql.Row {}),
100100 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {int64 (5 )}, nil , []sql.Row {}),
101101 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {int64 (6 )}, nil , []sql.Row {}),
@@ -117,7 +117,7 @@ var StatisticsQueries = []ScriptTest{
117117 SkipResultCheckOnServerEngine : true , // the non-interface types are not identified over the wire result
118118 Query : "SELECT * FROM information_schema.column_statistics" ,
119119 Expected : []sql.Row {
120- {"mydb" , "t" , "i" , stats .NewStatistic (4 , 4 , 0 , 32 , time .Now (), sql .NewStatQualifier ("mydb" , "t" , "primary" ), []string {"i" }, []sql.Type {types .Float64 }, []sql.HistogramBucket {
120+ {"mydb" , "t" , "i" , stats .NewStatistic (4 , 4 , 0 , 32 , time .Now (), sql .NewStatQualifier ("mydb" , "" , " t" , "primary" ), []string {"i" }, []sql.Type {types .Float64 }, []sql.HistogramBucket {
121121 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {float64 (1.25 )}, nil , []sql.Row {}),
122122 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {float64 (7.5 )}, nil , []sql.Row {}),
123123 stats .NewHistogramBucket (1 , 1 , 0 , 1 , sql.Row {float64 (10.5 )}, nil , []sql.Row {}),
0 commit comments