We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8bd1d8 commit efb69a3Copy full SHA for efb69a3
enginetest/queries/script_queries.go
@@ -8410,6 +8410,30 @@ where
8410
},
8411
8412
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
8432
+ {uint8(2)},
8433
8434
8435
8436
8437
}
8438
8439
var SpatialScriptTests = []ScriptTest{
0 commit comments