Sometimes we want to defeat the expression optimizer's ability to fold constant expressions. A bind variable is a convenient way to do this, without the complexity of faking a schema and row inputs. Add a helper to evaluate an expression with bind variable parameters, doing all the paperwork for us. A companion make_bind_variable() is added to likewise simplify creating bind variables for tests.
5.8 KiB
5.8 KiB