MCPcopy Create free account
hub / github.com/PostHog/duckgres / dropsUserArgFromPrivilegeCheck

Function dropsUserArgFromPrivilegeCheck

transpiler/transform/pgcatalog.go:679–690  ·  view source on GitHub ↗
(funcName string, argCount int)

Source from the content-addressed store, hash-verified

677 }
678}
679
680func dropsUserArgFromPrivilegeCheck(funcName string, argCount int) bool {
681 if argCount != 3 {
682 return false
683 }
684
685 switch funcName {
686 case "has_schema_privilege", "has_table_privilege", "has_any_column_privilege", "has_database_privilege":
687 return true
688 default:
689 return false
690 }
691}
692
693func (t *PgCatalogTransform) walkSelectStmt(stmt *pg_query.SelectStmt, changed *bool) {

Callers 1

walkAndTransformMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected