NewVariable creates a new variable in the current scope. If a variable with the same name exists in a previous scope, then that variable will be shadowed until the current scope exits.
(name string, typ *pgtypes.DoltgresType)
| 190 | // NewVariable creates a new variable in the current scope. If a variable with the same name exists in a previous scope, |
| 191 | // then that variable will be shadowed until the current scope exits. |
| 192 | func (is *InterpreterStack) NewVariable(name string, typ *pgtypes.DoltgresType) { |
| 193 | is.NewVariableWithValue(name, typ, typ.Zero()) |
| 194 | } |
| 195 | |
| 196 | // NewVariableWithValue creates a new variable in the current scope, setting its initial value to the one given. |
| 197 | func (is *InterpreterStack) NewVariableWithValue(name string, typ *pgtypes.DoltgresType, val any) { |
no test coverage detected