MCPcopy
hub / github.com/sqlc-dev/sqlc / convertCaseTestExpr

Function convertCaseTestExpr

internal/engine/postgresql/convert.go:696–706  ·  view source on GitHub ↗
(n *pg.CaseTestExpr)

Source from the content-addressed store, hash-verified

694}
695
696func convertCaseTestExpr(n *pg.CaseTestExpr) *ast.CaseTestExpr {
697 if n == nil {
698 return nil
699 }
700 return &ast.CaseTestExpr{
701 Xpr: convertNode(n.Xpr),
702 TypeId: ast.Oid(n.TypeId),
703 TypeMod: n.TypeMod,
704 Collation: ast.Oid(n.Collation),
705 }
706}
707
708func convertCaseWhen(n *pg.CaseWhen) *ast.CaseWhen {
709 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

OidTypeAlias · 0.92
convertNodeFunction · 0.85

Tested by

no test coverage detected