Hi!
On Jun 23, Konstantin Osipov wrote:
> * kgeorge@stripped <kgeorge@stripped> [07/06/22 20:49]:
> > +
> > +connect (c1,localhost,root,,);
> > +connect (c2,localhost,root,,);
> > +
> > +connection c1;
>
> Wow, I didn't know this syntax is allowed.
> I've always been using --connection.
'--' before the mysqltest command is (and always was) optional.
Conventionally, commands like 'error' and 'echo' are started from '--',
so that a test case could be piped into mysql command line client.
But there's no use in escaping 'if' or 'connection' commands, mysql
command line client won't be able to execute the test even if they're
escaped.
Regards / Mit vielen Grüssen,
Sergei
--
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Sergei Golubchik <serg@stripped>
/ /|_/ / // /\ \/ /_/ / /__ Principal Software Developer
/_/ /_/\_, /___/\___\_\___/ MySQL GmbH, Radlkoferstr. 2, D-81373 München
<___/ Geschäftsführer: Kaj Arnö - HRB
München 162140