@@ -30,27 +30,27 @@ func TestMakeSimpleTableDescriptorErrors(t *testing.T) {
30
30
}{
31
31
{
32
32
stmt : "create table if not exists a (i int)" ,
33
- error : "unsupported IF NOT EXISTS" ,
33
+ error : "IF NOT EXISTS is not supported " ,
34
34
},
35
35
{
36
36
stmt : "create table a as select 1" ,
37
- error : "CREATE AS not supported" ,
37
+ error : "CREATE AS is not supported" ,
38
38
},
39
39
{
40
40
stmt : "create table a (i int references b (id))" ,
41
- error : `this IMPORT format does not support foreign keys ` ,
41
+ error : `foreign keys are not supported ` ,
42
42
},
43
43
{
44
44
stmt : "create table a (i int, constraint a foreign key (i) references c (id))" ,
45
- error : `this IMPORT format does not support foreign keys ` ,
45
+ error : `foreign keys are not supported ` ,
46
46
},
47
47
{
48
48
stmt : "create table a (i int, j int as (i + 10) virtual)" ,
49
- error : `to import into a table with virtual computed columns, use IMPORT INTO ` ,
49
+ error : `virtual computed columns are not supported ` ,
50
50
},
51
51
{
52
52
stmt : "create table a (i int, index ((i + 1)))" ,
53
- error : `to import into a table with expression indexes, use IMPORT INTO ` ,
53
+ error : `expression indexes are not supported ` ,
54
54
},
55
55
{
56
56
stmt : `create table a (
@@ -81,7 +81,7 @@ func TestMakeSimpleTableDescriptorErrors(t *testing.T) {
81
81
if ! ok {
82
82
t .Fatal ("expected CREATE TABLE statement in table file" )
83
83
}
84
- _ , err = MakeTestingSimpleTableDescriptor (ctx , & semaCtx , st , create , parentID , keys .PublicSchemaID , tableID , NoFKs , 0 )
84
+ _ , err = MakeTestingSimpleTableDescriptor (ctx , & semaCtx , st , create , parentID , keys .PublicSchemaID , tableID , 0 )
85
85
if ! testutils .IsError (err , tc .error ) {
86
86
t .Fatalf ("expected %v, got %+v" , tc .error , err )
87
87
}
0 commit comments