Skip to content

MDEV-12192 Shell-style alias/unalias commands for MariaDB client - #2341

Open
an3l wants to merge 16 commits into
MariaDB:11.0from
an3l:bb-10.3-anel-alias-MDEV-12192-v3
Open

MDEV-12192 Shell-style alias/unalias commands for MariaDB client#2341
an3l wants to merge 16 commits into
MariaDB:11.0from
an3l:bb-10.3-anel-alias-MDEV-12192-v3

Conversation

@an3l

@an3l an3l commented Nov 22, 2022

Copy link
Copy Markdown
Contributor

No description provided.

@an3l an3l added the MariaDB Foundation Pull requests created by MariaDB Foundation label Nov 22, 2022
@an3l an3l added this to the 10.3 milestone Nov 22, 2022
@an3l
an3l requested review from LinuxJedi and cvicentiu November 22, 2022 17:54
@an3l
an3l force-pushed the bb-10.3-anel-alias-MDEV-12192-v3 branch 2 times, most recently from cb5190f to ff287b2 Compare November 28, 2022 16:11
@an3l
an3l changed the base branch from 10.3 to 11.0 March 12, 2024 11:43
Nirbhay Choubey and others added 16 commits March 13, 2024 09:47
- Apply svoj review of PR MariaDB#301
- Update error message
- Alias buffer in `com_go()` should be used if an alias exist, otherwise
all other queries will break. The same should happen with collations.
- Check memory allocations for alias name/value
- Style fixes
- Add test case and result
- Remove initialization of mariadbrc file from `init_alias()`
- Further style fixes
… shortcut command

- Check which buffer to use as an argument for the call to the function pointer of command. Buffer shouldn't have delimiter.
- By default check if command processed is `go` which doesn't take any parameter (`takes_params`) or if a server side comment (`/*! \C latin1 */ select 1`) is applied. If so use `pos` buffer, otherwise create buffer without delimiter.
- Order of call of function pointer matters.
@an3l
an3l force-pushed the bb-10.3-anel-alias-MDEV-12192-v3 branch from ff287b2 to 66c18e4 Compare March 13, 2024 09:01
@iangilfillan iangilfillan assigned svoj and unassigned cvicentiu Jan 20, 2026
@iangilfillan

Copy link
Copy Markdown
Contributor

@svoj https://jira.mariadb.org/browse/MDEV-12192 is assigned to you, so assigning you this PR. You can close if it's no longer useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MariaDB Foundation Pull requests created by MariaDB Foundation

Development

Successfully merging this pull request may close these issues.

4 participants