[MDEV-23668] $$ "Full-Escape" Syntax for mysql CLI and mysqltest Created: 2020-09-04 Updated: 2020-09-13 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Roel Van de Paar | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
With thanks to bar for the great idea, this feature request to implement $$ syntax markers in the mysql client (and mysqltest), which would avoid the need for any delimiter inside them. This would allow single-line CREATE PROCEDURE statements (very handy for QA and MTR tests etc.) and other goodies like not having to change delimiters, being able to insert binary data directly, etc.
etc. PostgreSQL also has something like this in $$ (as does Bash from memory, with a different syntax): |
| Comments |
| Comment by Roel Van de Paar [ 2020-09-04 ] | |||||||||||||||
|
sanja any thoughts on this? | |||||||||||||||
| Comment by Roel Van de Paar [ 2020-09-04 ] | |||||||||||||||
|
vs
And one can maintain the original formatting if so desired:
|