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

Function isQueryLogSelfReferential

server/querylog.go:597–600  ·  view source on GitHub ↗

isQueryLogSelfReferential returns true if the query targets system.query_log, to prevent infinite recursion.

(query string)

Source from the content-addressed store, hash-verified

595}
596
597// parsePort converts a port string to int.
598func parsePort(s string) (int, error) {
599 if s == "" {
600 return 0, fmt.Errorf("invalid port")
601 }
602 var port int
603 for _, c := range s {

Callers 2

logQueryMethod · 0.85

Calls

no outgoing calls

Tested by 1