Created
September 28, 2023 11:15
-
-
Save andrei-dascalu/700814035f1998de27a80e0203e9657a to your computer and use it in GitHub Desktop.
SQLC Error Debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
([]interface {}) (len=1 cap=1) { | |
(*ast.RawStmt)(0x14000370ea0)({ | |
Stmt: (*ast.InsertStmt)(0x1400032d480)({ | |
Relation: (*ast.RangeVar)(0x1400047b890)({ | |
Catalogname: (*string)(<nil>), | |
Schemaname: (*string)(0x14000438f40)(""), | |
Relname: (*string)(0x14000438f50)((len=5) "event"), | |
Inh: (bool) false, | |
Relpersistence: (uint8) 0, | |
Alias: (*ast.Alias)(<nil>), | |
Location: (int) 0 | |
}), | |
Cols: (*ast.List)(0x14000472e70)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.ResTarget)(0x1400047b8c0)({ | |
Name: (*string)(0x14000438f70)((len=8) "timezone"), | |
Indirection: (*ast.List)(<nil>), | |
Val: (ast.Node) <nil>, | |
Location: (int) 0 | |
}) | |
} | |
}), | |
SelectStmt: (*ast.SelectStmt)(0x1400048fce0)({ | |
DistinctClause: (*ast.List)(<nil>), | |
IntoClause: (*ast.IntoClause)(<nil>), | |
TargetList: (*ast.List)(0x140004730b0)({ | |
Items: ([]ast.Node) <nil> | |
}), | |
FromClause: (*ast.List)(0x14000473098)({ | |
Items: ([]ast.Node) <nil> | |
}), | |
WhereClause: (ast.Node) <nil>, | |
GroupClause: (*ast.List)(<nil>), | |
HavingClause: (ast.Node) <nil>, | |
WindowClause: (*ast.List)(<nil>), | |
ValuesLists: (*ast.List)(0x14000472ea0)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.List)(0x14000472eb8)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.CaseExpr)(0x14000360b90)({ | |
Xpr: (ast.Node) <nil>, | |
Casetype: (ast.Oid) 0, | |
Casecollid: (ast.Oid) 0, | |
Arg: (ast.Node) <nil>, | |
Args: (*ast.List)(0x14000472ed0)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.CaseWhen)(0x1400032d540)({ | |
Xpr: (ast.Node) <nil>, | |
Expr: (*ast.A_Expr)(0x1400032d4c0)({ | |
Kind: (ast.A_Expr_Kind) 0, | |
Name: (*ast.List)(0x14000472f48)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.String)(0x14000438f90)({ | |
Str: (string) (len=1) "=" | |
}) | |
} | |
}), | |
Lexpr: (*ast.FuncCall)(0x14000360aa0)({ | |
Func: (*ast.FuncName)(0x1400047b8f0)({ | |
Catalog: (string) "", | |
Schema: (string) (len=4) "sqlc", | |
Name: (string) (len=3) "arg" | |
}), | |
Funcname: (*ast.List)(0x14000472f18)({ | |
Items: ([]ast.Node) (len=2 cap=2) { | |
(*ast.String)(0x14000438fa0)({ | |
Str: (string) (len=4) "sqlc" | |
}), | |
(*ast.String)(0x14000438fc0)({ | |
Str: (string) (len=3) "arg" | |
}) | |
} | |
}), | |
Args: (*ast.List)(0x14000472ee8)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.A_Const)(0x14000472f00)({ | |
Val: (*ast.String)(0x14000438fd0)({ | |
Str: (string) (len=8) "Timezone" | |
}), | |
Location: (int) 100 | |
}) | |
} | |
}), | |
AggOrder: (*ast.List)(<nil>), | |
AggFilter: (ast.Node) <nil>, | |
AggWithinGroup: (bool) false, | |
AggStar: (bool) false, | |
AggDistinct: (bool) false, | |
FuncVariadic: (bool) false, | |
Over: (*ast.WindowDef)(<nil>), | |
Location: (int) 91 | |
}), | |
Rexpr: (*ast.A_Const)(0x14000472f30)({ | |
Val: (*ast.String)(0x14000438ff0)({ | |
Str: (string) (len=8) "calendar" | |
}), | |
Location: (int) 114 | |
}), | |
Location: (int) 0 | |
}), | |
Result: (*ast.SelectStmt)(0x1400048fc30)({ | |
DistinctClause: (*ast.List)(<nil>), | |
IntoClause: (*ast.IntoClause)(<nil>), | |
TargetList: (*ast.List)(0x14000472f90)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.ResTarget)(0x1400047b920)({ | |
Name: (*string)(<nil>), | |
Indirection: (*ast.List)(<nil>), | |
Val: (*ast.ColumnRef)(0x14000370e00)({ | |
Name: (string) "", | |
Fields: (*ast.List)(0x14000472f78)({ | |
Items: ([]ast.Node) (len=2 cap=2) { | |
(*ast.String)(0x14000439020)({ | |
Str: (string) (len=3) "cal" | |
}), | |
(*ast.String)(0x14000439040)({ | |
Str: (string) (len=8) "timezone" | |
}) | |
} | |
}), | |
Location: (int) 138 | |
}), | |
Location: (int) 138 | |
}) | |
} | |
}), | |
FromClause: (*ast.List)(0x14000472fa8)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.RangeVar)(0x1400047b950)({ | |
Catalogname: (*string)(<nil>), | |
Schemaname: (*string)(0x14000439060)(""), | |
Relname: (*string)(0x14000439070)((len=8) "calendar"), | |
Inh: (bool) false, | |
Relpersistence: (uint8) 0, | |
Alias: (*ast.Alias)(0x14000439080)({ | |
Aliasname: (*string)(0x14000439050)((len=3) "cal"), | |
Colnames: (*ast.List)(<nil>) | |
}), | |
Location: (int) 0 | |
}) | |
} | |
}), | |
WhereClause: (*ast.A_Expr)(0x1400032d500)({ | |
Kind: (ast.A_Expr_Kind) 0, | |
Name: (*ast.List)(0x14000473038)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.String)(0x140004390a0)({ | |
Str: (string) (len=1) "=" | |
}) | |
} | |
}), | |
Lexpr: (*ast.ColumnRef)(0x14000370e40)({ | |
Name: (string) "", | |
Fields: (*ast.List)(0x14000472fd8)({ | |
Items: ([]ast.Node) (len=2 cap=2) { | |
(*ast.String)(0x140004390b0)({ | |
Str: (string) (len=3) "cal" | |
}), | |
(*ast.String)(0x140004390d0)({ | |
Str: (string) (len=5) "idkey" | |
}) | |
} | |
}), | |
Location: (int) 175 | |
}), | |
Rexpr: (*ast.FuncCall)(0x14000360af0)({ | |
Func: (*ast.FuncName)(0x1400047b980)({ | |
Catalog: (string) "", | |
Schema: (string) (len=4) "sqlc", | |
Name: (string) (len=3) "arg" | |
}), | |
Funcname: (*ast.List)(0x14000473020)({ | |
Items: ([]ast.Node) (len=2 cap=2) { | |
(*ast.String)(0x140004390e0)({ | |
Str: (string) (len=4) "sqlc" | |
}), | |
(*ast.String)(0x14000439100)({ | |
Str: (string) (len=3) "arg" | |
}) | |
} | |
}), | |
Args: (*ast.List)(0x14000472ff0)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.A_Const)(0x14000473008)({ | |
Val: (*ast.String)(0x14000439110)({ | |
Str: (string) (len=13) "calendarIdKey" | |
}), | |
Location: (int) 196 | |
}) | |
} | |
}), | |
AggOrder: (*ast.List)(<nil>), | |
AggFilter: (ast.Node) <nil>, | |
AggWithinGroup: (bool) false, | |
AggStar: (bool) false, | |
AggDistinct: (bool) false, | |
FuncVariadic: (bool) false, | |
Over: (*ast.WindowDef)(<nil>), | |
Location: (int) 187 | |
}), | |
Location: (int) 0 | |
}), | |
GroupClause: (*ast.List)(0x14000472fc0)({ | |
Items: ([]ast.Node) <nil> | |
}), | |
HavingClause: (ast.Node) <nil>, | |
WindowClause: (*ast.List)(0x14000472f60)({ | |
Items: ([]ast.Node) { | |
} | |
}), | |
ValuesLists: (*ast.List)(<nil>), | |
SortClause: (*ast.List)(<nil>), | |
LimitOffset: (ast.Node) <nil>, | |
LimitCount: (ast.Node) <nil>, | |
LockingClause: (*ast.List)(<nil>), | |
WithClause: (*ast.WithClause)(<nil>), | |
Op: (ast.SetOperation) None, | |
All: (bool) false, | |
Larg: (*ast.SelectStmt)(<nil>), | |
Rarg: (*ast.SelectStmt)(<nil>) | |
}), | |
Location: (int) 0 | |
}) | |
} | |
}), | |
Defresult: (*ast.FuncCall)(0x14000360b40)({ | |
Func: (*ast.FuncName)(0x1400047b9b0)({ | |
Catalog: (string) "", | |
Schema: (string) (len=4) "sqlc", | |
Name: (string) (len=3) "arg" | |
}), | |
Funcname: (*ast.List)(0x14000473080)({ | |
Items: ([]ast.Node) (len=2 cap=2) { | |
(*ast.String)(0x14000439150)({ | |
Str: (string) (len=4) "sqlc" | |
}), | |
(*ast.String)(0x14000439170)({ | |
Str: (string) (len=3) "arg" | |
}) | |
} | |
}), | |
Args: (*ast.List)(0x14000473050)({ | |
Items: ([]ast.Node) (len=1 cap=1) { | |
(*ast.A_Const)(0x14000473068)({ | |
Val: (*ast.String)(0x14000439180)({ | |
Str: (string) (len=8) "Timezone" | |
}), | |
Location: (int) 228 | |
}) | |
} | |
}), | |
AggOrder: (*ast.List)(<nil>), | |
AggFilter: (ast.Node) <nil>, | |
AggWithinGroup: (bool) false, | |
AggStar: (bool) false, | |
AggDistinct: (bool) false, | |
FuncVariadic: (bool) false, | |
Over: (*ast.WindowDef)(<nil>), | |
Location: (int) 219 | |
}), | |
Location: (int) 81 | |
}) | |
} | |
}) | |
} | |
}), | |
SortClause: (*ast.List)(<nil>), | |
LimitOffset: (ast.Node) <nil>, | |
LimitCount: (ast.Node) <nil>, | |
LockingClause: (*ast.List)(<nil>), | |
WithClause: (*ast.WithClause)(<nil>), | |
Op: (ast.SetOperation) None, | |
All: (bool) false, | |
Larg: (*ast.SelectStmt)(<nil>), | |
Rarg: (*ast.SelectStmt)(<nil>) | |
}), | |
OnConflictClause: (*ast.OnConflictClause)(<nil>), | |
ReturningList: (*ast.List)(0x14000472e88)({ | |
Items: ([]ast.Node) <nil> | |
}), | |
WithClause: (*ast.WithClause)(<nil>), | |
Override: (ast.OverridingKind) 0 | |
}), | |
StmtLocation: (int) 0, | |
StmtLen: (int) 246 | |
}) | |
} | |
unsupported reference type: <nil> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment