-
Notifications
You must be signed in to change notification settings - Fork 65
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
Support --let
#49
Support --let
#49
Conversation
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.
LGTM + some suggestions.
Also should we start to add more tests? Like in t/*.test
and r/*.result
files?
Co-authored-by: Mattias Jonsson <[email protected]>
/cc @bb7133 |
|
PTAL @mjonss |
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.
LGTM, but please also add some tests.
I'm approving it, but I think we can extend this a bit further to be more compatible with the let
command of mysqltest client. Like handling backtick quoting the same.
Should we also make a feature request for --expr
?
I've added a test for We could add tests like #49 (comment) in this repo or rely on this being used in other repos.
Yes, we could do that, but this does most of what most tests need. I think we can extend this in another PR later when needed.
I'm not sure if there is any demand for that. Maybe add a note about this in #110 ? |
PTAL @bb7133 |
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.
LGTM
Issue: ref #110
--let $a=5
--let $b=`SELECT VERSION()`
--echo $a and $b
See also: https://dev.mysql.com/doc/dev/mysql-server/latest/PAGE_MYSQL_TEST_COMMANDS.html