isQueryLogSelfReferential returns true if the query targets system.query_log, to prevent infinite recursion.
(query string)
| 595 | } |
| 596 | |
| 597 | // parsePort converts a port string to int. |
| 598 | func 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 { |
no outgoing calls