Some questions about context handling #204
-
Hello, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
For 3, I can open a PR too, but it may be a week or more. It's this function where you can check the SQL statement and avoid injecting those variable declarations. I assume you understand, but those variables are for the triggers that track history. Although one could also do a round-trip SQL once the moment the context manager is entered, I was hesitant to introduce more round-trip queries in someones application. These are session-level variables too, so it seemed that setting them in each statement avoids the potential for leaky variables across a pooled connection. I'm also open to contributors setting the variables once in the context manager just as long as there's a setting to provide both modes |
Beta Was this translation helpful? Give feedback.
set_config
yourself if curious, i.e.explain analyze select set_config('variable.name', 'value', true);
For 3, I can open a PR too, but it may be a week or more. It's this function where you can check the SQL statement and avoid inj…