Skip to content

Commit efb69a3

Browse files
author
James Cor
committed
test with indexes
1 parent c8bd1d8 commit efb69a3

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

enginetest/queries/script_queries.go

+24
Original file line numberDiff line numberDiff line change
@@ -8410,6 +8410,30 @@ where
84108410
},
84118411
},
84128412
},
8413+
{
8414+
Name: "bit default value",
8415+
Dialect: "mysql",
8416+
SetUpScript: []string{
8417+
"create table t (i int primary key, b bit(2) default 2);",
8418+
"insert into t(i) values (1);",
8419+
"create table tt (b bit(2) default 2 primary key);",
8420+
"insert into tt values ();",
8421+
},
8422+
Assertions: []ScriptTestAssertion{
8423+
{
8424+
Query: "select * from t;",
8425+
Expected: []sql.Row{
8426+
{1, uint8(2)},
8427+
},
8428+
},
8429+
{
8430+
Query: "select * from tt;",
8431+
Expected: []sql.Row{
8432+
{uint8(2)},
8433+
},
8434+
},
8435+
},
8436+
},
84138437
}
84148438

84158439
var SpatialScriptTests = []ScriptTest{

0 commit comments

Comments
 (0)