-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
executor: introduce max_user_connections #59197
base: master
Are you sure you want to change the base?
Changes from all commits
fdcdc2a
bad08f0
3e4e094
0c43eb2
dbdb08f
b9c3ffc
380ab52
277639e
c135df4
4b4d35e
11d063b
542fb1b
38cd55c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13770,8 +13770,19 @@ ConnectionOptions: | |
| "WITH" ConnectionOptionList | ||
{ | ||
$$ = $2 | ||
yylex.AppendError(yylex.Errorf("TiDB does not support WITH ConnectionOptions now, they would be parsed but ignored.")) | ||
parser.lastErrorAsWarn() | ||
Comment on lines
-13773
to
-13774
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we only support There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Good comments. I have modify it. If enter other |
||
needWarning := false | ||
for _, option := range $2.([]*ast.ResourceOption) { | ||
switch option.Type { | ||
case ast.MaxUserConnections: | ||
// do nothing. | ||
default: | ||
needWarning = true | ||
} | ||
} | ||
if needWarning { | ||
yylex.AppendError(yylex.Errorf("TiDB does not support WITH ConnectionOptions but MAX_USER_CONNECTIONS now, they would be parsed but ignored.")) | ||
parser.lastErrorAsWarn() | ||
} | ||
} | ||
|
||
ConnectionOptionList: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the
maxQueriesPerHour
and the other 2 resource limits required?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These three parameters are reserved and are not currently implemented