We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e8c36 commit 4e4cb45Copy full SHA for 4e4cb45
engine.go
@@ -269,6 +269,8 @@ func clearWarnings(ctx *sql.Context, node sql.Node) {
269
// `show warning limit x offset y` is valid, so we need to recurse
270
clearWarnings(ctx, n.Children()[0])
271
case *plan.Set:
272
+ // We want to maintain warnings when setting the warnings_lock variable.
273
+ // Set statements also can't produce warnings, so we don't care about clearing them.
274
case plan.ShowWarnings:
275
// ShowWarnings should not clear the warnings, but should still reset the warning count.
276
ctx.ClearWarningCount()
0 commit comments