-
Notifications
You must be signed in to change notification settings - Fork 3.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
sql: alias SHOW STATEMENTS to SHOW QUERIES #56240
Comments
I can do this. A question: should |
Fixes cockroachdb#56240 This commit makes SHOW STATEMENTS a (preferred) alias of SHOW QUERIES. Release note: None
Thanks @ivern ! Good question. I'll find out and get an answer when I can, but may take longer than normal since we are in a holiday period. |
58072: sql: alias SHOW STATEMENTS to SHOW QUERIES r=rafiss a=ivern Fixes #56240 This commit makes SHOW STATEMENTS a (preferred) alias of SHOW QUERIES. Release note (sql change): SHOW STATEMENTS is now an alias of SHOW QUERIES. The new syntax is preferred by the SQL parser. 58431: opt: assign placeholders for cascade queries r=rytaft a=rytaft Prior to this commit, it was possible that placeholders could appear in cascade queries without getting replaced, causing an error at execution time. This commit fixes the problem by ensuring that placeholders are replaced before the cascade query is executed. Fixes #58028 Release note (bug fix): Fixed an internal error that could occur when executing prepared statements with placeholders that delete data from columns referenced by a foreign key with ON DELETE CASCADE. Co-authored-by: Javier Fernandez-Ivern <[email protected]> Co-authored-by: Rebecca Taft <[email protected]>
@ivern I checked in and an alias for |
@rafiss Thanks, I can make that change as well. I'll submit a PR later this week when I have some time. |
Fixes cockroachdb#56240 This commit makes SHOW STATEMENTS a (preferred) alias of SHOW QUERIES. Release note (sql change): SHOW STATEMENTS is now an alias of SHOW QUERIES. The new syntax is preferred by the SQL parser.
As we seek to make replicate functionality between the db console and the SQL shell we should seek consistency in terminology as well.
In the db console we offer Sessions, Transactions, and Statements pages.
We mirror this in the SQL shell with
SHOW SESSIONS
,SHOW TRANSACTIONS
, andSHOW QUERIES.
(although these only show active sessions, transactions, and queries as opposed to the db consoles historical information).SHOW QUERIES and Statements are not consistent. Let's alias
SHOW STATEMENTS
to be the same asSHOW QUERIES
so that we can demonstrate consistency. We don't need to retireSHOW QUERIES
since its already in use but we should gradually emphasize it in the docs in favor of the newSHOW STATEMENTS
for consistency.The text was updated successfully, but these errors were encountered: