Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
majimaccho committed Nov 3, 2023
1 parent 8f9d93b commit a409ef5
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions testutil/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ func NewSchema(t *testing.T) *schema.Schema {
Def: "CREATE CONSTRAINT TRIGGER update_a_a2 AFTER INSERT OR UPDATE ON a",
},
}
ta.Viewpoints = []*schema.TableViewpoint{
&schema.TableViewpoint{
Name: "table a b",
Desc: "select table a and b",
Index: 0,
},
&schema.TableViewpoint{
Name: "table a label red",
Desc: "select table a and label red\n\n- table a\n- label red",
Index: 3,
},
}

tb := &schema.Table{
Name: tableBName,
Comment: "table b",
Expand All @@ -86,6 +99,13 @@ func NewSchema(t *testing.T) *schema.Schema {
},
Labels: []*schema.Label{labelRed, labelGreen},
}
tb.Viewpoints = []*schema.TableViewpoint{
&schema.TableViewpoint{
Name: "table a b",
Desc: "select table a and b",
Index: 0,
},
}
r := &schema.Relation{
Table: tb,
Columns: []*schema.Column{cb},
Expand Down

0 comments on commit a409ef5

Please sign in to comment.