File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -1006,6 +1006,29 @@ var AlterTableScripts = []ScriptTest{
1006
1006
},
1007
1007
},
1008
1008
},
1009
+ {
1010
+ // https://github.com/dolthub/dolt/issues/9178
1011
+ Name : "alter modify column type float to bigint" ,
1012
+ SetUpScript : []string {
1013
+ "create table t1 (pk int primary key, c1 float);" ,
1014
+ "insert into t1 values (1, 0.0)" ,
1015
+ "insert into t1 values (2, 127.9)" ,
1016
+ "insert into t1 values (3, 42.1)" ,
1017
+ },
1018
+ Assertions : []ScriptTestAssertion {
1019
+ {
1020
+ Query : "alter table t1 modify column c1 bigint" ,
1021
+ },
1022
+ {
1023
+ Query : "select * from t1 order by pk" ,
1024
+ Expected : []sql.Row {
1025
+ {1 , int64 (0 )},
1026
+ {2 , int64 (128 )},
1027
+ {3 , int64 (42 )},
1028
+ },
1029
+ },
1030
+ },
1031
+ },
1009
1032
}
1010
1033
1011
1034
var RenameTableScripts = []ScriptTest {
You can’t perform that action at this time.
0 commit comments