@@ -20,7 +20,7 @@ func TestInsert(t *testing.T) {
2020 expected : & ast.Statement {
2121 Raw : & ast.RawStmt {
2222 Stmt : & ast.InsertStmt {
23- Relation : & ast.RangeVar {Relname : strPtr ("users" )},
23+ Relation : & ast.RangeVar {Relname : strPtr ("users" ), Inh : true },
2424 Cols : & ast.List {
2525 Items : []ast.Node {
2626 & ast.ResTarget {Name : strPtr ("id" )},
@@ -39,11 +39,11 @@ func TestInsert(t *testing.T) {
3939 },
4040 },
4141 },
42- TargetList : & ast.List {},
43- FromClause : & ast.List {},
44- GroupClause : & ast.List {},
45- WindowClause : & ast.List {},
46- SortClause : & ast.List {},
42+ TargetList : & ast.List {},
43+ FromClause : & ast.List {},
44+ GroupClause : & ast.List {},
45+ WindowClause : & ast.List {},
46+ SortClause : & ast.List {},
4747 LockingClause : & ast.List {},
4848 },
4949 OnConflictClause : & ast.OnConflictClause {},
@@ -66,7 +66,7 @@ func TestInsert(t *testing.T) {
6666 expected : & ast.Statement {
6767 Raw : & ast.RawStmt {
6868 Stmt : & ast.InsertStmt {
69- Relation : & ast.RangeVar {Relname : strPtr ("users" )},
69+ Relation : & ast.RangeVar {Relname : strPtr ("users" ), Inh : true },
7070 Cols : & ast.List {
7171 Items : []ast.Node {
7272 & ast.ResTarget {Name : strPtr ("id" )},
@@ -83,11 +83,11 @@ func TestInsert(t *testing.T) {
8383 },
8484 },
8585 },
86- TargetList : & ast.List {},
87- FromClause : & ast.List {},
88- GroupClause : & ast.List {},
89- WindowClause : & ast.List {},
90- SortClause : & ast.List {},
86+ TargetList : & ast.List {},
87+ FromClause : & ast.List {},
88+ GroupClause : & ast.List {},
89+ WindowClause : & ast.List {},
90+ SortClause : & ast.List {},
9191 LockingClause : & ast.List {},
9292 },
9393 OnConflictClause : & ast.OnConflictClause {
@@ -114,17 +114,17 @@ func TestInsert(t *testing.T) {
114114 expected : & ast.Statement {
115115 Raw : & ast.RawStmt {
116116 Stmt : & ast.InsertStmt {
117- Relation : & ast.RangeVar {Relname : strPtr ("users" )},
118- Cols : & ast.List {Items : []ast.Node {& ast.ResTarget {Name : strPtr ("id" )}}},
117+ Relation : & ast.RangeVar {Relname : strPtr ("users" ), Inh : true },
118+ Cols : & ast.List {Items : []ast.Node {& ast.ResTarget {Name : strPtr ("id" )}}},
119119 SelectStmt : & ast.SelectStmt {
120120 DistinctClause : & ast.List {},
121- ValuesLists : & ast.List {Items : []ast.Node {& ast.List {Items : []ast.Node {& ast.A_Const {Val : & ast.Integer {Ival : 4 }}}}}},
122- TargetList : & ast.List {},
123- FromClause : & ast.List {},
124- GroupClause : & ast.List {},
125- WindowClause : & ast.List {},
126- SortClause : & ast.List {},
127- LockingClause : & ast.List {},
121+ ValuesLists : & ast.List {Items : []ast.Node {& ast.List {Items : []ast.Node {& ast.A_Const {Val : & ast.Integer {Ival : 4 }}}}}},
122+ TargetList : & ast.List {},
123+ FromClause : & ast.List {},
124+ GroupClause : & ast.List {},
125+ WindowClause : & ast.List {},
126+ SortClause : & ast.List {},
127+ LockingClause : & ast.List {},
128128 },
129129 OnConflictClause : & ast.OnConflictClause {Action : ast .OnConflictAction_UPSERT },
130130 ReturningList : & ast.List {Items : []ast.Node {& ast.ResTarget {Val : & ast.ColumnRef {Fields : & ast.List {Items : []ast.Node {& ast.String {Str : "id" }}}}, Indirection : & ast.List {}}}},
0 commit comments