MCPcopy Create free account
hub / github.com/dolthub/doltgresql / SetAnonymousLabel

Method SetAnonymousLabel

server/plpgsql/interpreter_stack.go:246–250  ·  view source on GitHub ↗

SetAnonymousLabel sets the label for the current scope to a guaranteed unique value.

()

Source from the content-addressed store, hash-verified

244
245// SetAnonymousLabel sets the label for the current scope to a guaranteed unique value.
246func (is *InterpreterStack) SetAnonymousLabel() {
247 // Postgres labels cannot have a tab character, so we can generate a label with one to guarantee it's unique
248 is.stack.Peek().label = fmt.Sprintf("\t%d", is.labelID)
249 is.labelID++
250}
251
252// BufferReturnQueryResults buffers |results| from a RETURN QUERY statement so that they can be returned when
253// the function exits. If results from a previous RETURN QUERY call have already been buffered, |results| will

Callers 1

AppendOperationsMethod · 0.80

Calls 1

PeekMethod · 0.45

Tested by

no test coverage detected