@@ -259,8 +259,8 @@ func convertAlterDatabaseSetStmt(n *pg.AlterDatabaseSetStmt) *ast.Node {
259259 return & ast.Node {
260260 Node : & ast.Node_AlterDatabaseSetStmt {
261261 AlterDatabaseSetStmt : & ast.AlterDatabaseSetStmt {
262- Dbname : n .Dbname ,
263- Setstmt : convertVariableSetStmtForDatabaseSet (n .Setstmt ),
262+ Dbname : n .Dbname ,
263+ Setstmt : convertVariableSetStmtForDatabaseSet (n .Setstmt ),
264264 },
265265 },
266266 }
@@ -1482,12 +1482,12 @@ func convertCreateOpClassItem(n *pg.CreateOpClassItem) *ast.Node {
14821482 return & ast.Node {
14831483 Node : & ast.Node_CreateOpClassItem {
14841484 CreateOpClassItem : & ast.CreateOpClassItem {
1485- Itemtype : int32 (n .Itemtype ),
1486- Name : convertObjectWithArgs (n .Name ),
1487- Number : int32 (n .Number ),
1488- OrderFamily : convertSlice (n .OrderFamily ),
1489- ClassArgs : convertSlice (n .ClassArgs ),
1490- Storedtype : convertTypeName (n .Storedtype ),
1485+ Itemtype : int32 (n .Itemtype ),
1486+ Name : convertObjectWithArgs (n .Name ),
1487+ Number : int32 (n .Number ),
1488+ OrderFamily : convertSlice (n .OrderFamily ),
1489+ ClassArgs : convertSlice (n .ClassArgs ),
1490+ Storedtype : convertTypeName (n .Storedtype ),
14911491 },
14921492 },
14931493 }
@@ -1535,12 +1535,12 @@ func convertCreatePLangStmt(n *pg.CreatePLangStmt) *ast.Node {
15351535 return & ast.Node {
15361536 Node : & ast.Node_CreatePLangStmt {
15371537 CreatePLangStmt : & ast.CreatePLangStmt {
1538- Replace : n .Replace ,
1539- Plname : plname ,
1540- Plhandler : convertSlice (n .Plhandler ),
1541- Plinline : convertSlice (n .Plinline ),
1538+ Replace : n .Replace ,
1539+ Plname : plname ,
1540+ Plhandler : convertSlice (n .Plhandler ),
1541+ Plinline : convertSlice (n .Plinline ),
15421542 Plvalidator : convertSlice (n .Plvalidator ),
1543- Pltrusted : n .Pltrusted ,
1543+ Pltrusted : n .Pltrusted ,
15441544 },
15451545 },
15461546 }
@@ -2135,10 +2135,10 @@ func convertFuncCall(n *pg.FuncCall) *ast.FuncCall {
21352135 panic (err )
21362136 }
21372137 fc := & ast.FuncCall {
2138- Func : rel .FuncName (),
2139- Funcname : convertSlice (n .Funcname ),
2140- AggStar : n .AggStar ,
2141- Location : int32 (n .Location ),
2138+ Func : rel .FuncName (),
2139+ Funcname : convertSlice (n .Funcname ),
2140+ AggStar : n .AggStar ,
2141+ Location : int32 (n .Location ),
21422142 }
21432143 if args := convertSlice (n .Args ); args != nil {
21442144 fc .Args = args
@@ -2420,15 +2420,15 @@ func convertIntoClause(n *pg.IntoClause) *ast.IntoClause {
24202420 relRelname = n .Rel .Relname
24212421 }
24222422 return & ast.IntoClause {
2423- RelCatalogname : relCatalogname ,
2424- RelSchemaname : relSchemaname ,
2425- RelRelname : relRelname ,
2426- ColNames : convertSlice (n .ColNames ),
2427- Options : convertSlice (n .Options ),
2428- OnCommit : ast .OnCommitAction (n .OnCommit ),
2429- TableSpaceName : tableSpaceName ,
2430- ViewQuery : convertNode (n .ViewQuery ),
2431- SkipData : n .SkipData ,
2423+ RelCatalogname : relCatalogname ,
2424+ RelSchemaname : relSchemaname ,
2425+ RelRelname : relRelname ,
2426+ ColNames : convertSlice (n .ColNames ),
2427+ Options : convertSlice (n .Options ),
2428+ OnCommit : ast .OnCommitAction (n .OnCommit ),
2429+ TableSpaceName : tableSpaceName ,
2430+ ViewQuery : convertNode (n .ViewQuery ),
2431+ SkipData : n .SkipData ,
24322432 }
24332433}
24342434
@@ -2588,7 +2588,7 @@ func convertNullIfExpr(n *pg.NullIfExpr) *ast.Node {
25882588 Xpr : convertNode (n .Xpr ),
25892589 Opno : & ast.Oid {Value : uint64 (n .Opno )},
25902590 Opfuncid : & ast.Oid {Value : 0 }, // Opfuncid not in pg_query
2591- Opresulttype : & ast.Oid {Value : uint64 (n .Opresulttype )},
2591+ Opresulttype : & ast.Oid {Value : uint64 (n .Opresulttype )},
25922592 Opretset : & ast.Oid {Value : 0 }, // Opretset is bool in pg_query, convert to Oid
25932593 Opcollid : & ast.Oid {Value : uint64 (n .Opcollid )},
25942594 Inputcollid : & ast.Oid {Value : uint64 (n .Inputcollid )},
@@ -2856,7 +2856,7 @@ func convertQuery(n *pg.Query) *ast.Query {
28562856 LimitCount : convertNode (n .LimitCount ),
28572857 RowMarks : convertSlice (n .RowMarks ),
28582858 SetOperations : convertNode (n .SetOperations ),
2859- ConstraintDeps : convertSlice (n .ConstraintDeps ),
2859+ ConstraintDeps : convertSlice (n .ConstraintDeps ),
28602860 WithCheckOptions : convertSlice (n .WithCheckOptions ),
28612861 StmtLocation : int32 (n .StmtLocation ),
28622862 StmtLen : int32 (n .StmtLen ),
@@ -2980,11 +2980,11 @@ func convertRangeTblEntry(n *pg.RangeTblEntry) *ast.Node {
29802980 Lateral : n .Lateral ,
29812981 Inh : n .Inh ,
29822982 InFromCl : n .InFromCl ,
2983- RequiredPerms : 0 , // RequiredPerms not in pg_query
2983+ RequiredPerms : 0 , // RequiredPerms not in pg_query
29842984 CheckAsUser : & ast.Oid {Value : 0 }, // CheckAsUser not in pg_query
2985- SelectedCols : []uint32 {}, // SelectedCols not in pg_query
2986- InsertedCols : []uint32 {}, // InsertedCols not in pg_query
2987- UpdatedCols : []uint32 {}, // UpdatedCols not in pg_query
2985+ SelectedCols : []uint32 {}, // SelectedCols not in pg_query
2986+ InsertedCols : []uint32 {}, // InsertedCols not in pg_query
2987+ UpdatedCols : []uint32 {}, // UpdatedCols not in pg_query
29882988 SecurityQuals : convertSlice (n .SecurityQuals ),
29892989 },
29902990 },
@@ -3310,8 +3310,8 @@ func convertSecLabelStmt(n *pg.SecLabelStmt) *ast.Node {
33103310 return & ast.Node {
33113311 Node : & ast.Node_SecLabelStmt {
33123312 SecLabelStmt : & ast.SecLabelStmt {
3313- Objtype : ast .ObjectType (n .Objtype ),
3314- Object : convertNode (n .Object ),
3313+ Objtype : ast .ObjectType (n .Objtype ),
3314+ Object : convertNode (n .Object ),
33153315 Provider : n .Provider ,
33163316 Label : n .Label ,
33173317 },
@@ -3324,8 +3324,8 @@ func convertSelectStmt(n *pg.SelectStmt) *ast.SelectStmt {
33243324 return nil
33253325 }
33263326 stmt := & ast.SelectStmt {
3327- TargetList : convertSlice (n .TargetList ),
3328- FromClause : convertSlice (n .FromClause ),
3327+ TargetList : convertSlice (n .TargetList ),
3328+ FromClause : convertSlice (n .FromClause ),
33293329 }
33303330 // Always set these fields, even if empty (for consistency with test expectations)
33313331 stmt .GroupClause = convertSlice (n .GroupClause )
0 commit comments