Bug 6535 - [Mar2018]: mclient -t / --timer does not work as documented
Summary: [Mar2018]: mclient -t / --timer does not work as documented
Status: RESOLVED FIXED
Alias: None
Product: Client interfaces
Classification: Unclassified
Component: mclient, msqldump (show other bugs)
Version: 11.27.11 (Jul2017-SP3)
Hardware: All All
: Normal blocker
Assignee: clients devs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-08 07:20 CET by Stefan Manegold
Modified: 2018-03-29 15:39 CEST (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Manegold cwiconfidential 2018-02-08 07:20:39 CET
$ for i in clock minutes seconds milliseconds microseconds none ; do echo -e "\n\t$i\n" ; mclient -d$DB -s'select 0;' -t $i ; echo ; done

	clock

+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.579 ms


	minutes

warning: invalid argument to -t: minutes
+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.568 ms


	seconds

warning: invalid argument to -t: seconds
+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.576 ms


	milliseconds

warning: invalid argument to -t: milliseconds
+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.551 ms


	microseconds

warning: invalid argument to -t: microseconds
+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.567 ms


	none

+------+
| L2   |
+======+
|    0 |
+------+
1 tuple


$ for i in clock minutes seconds milliseconds microseconds none ; do echo -e "\n\t$i\n" ; mclient -d$DB -s'select 0;' --timer=$i ; echo ; done

	clock

+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.568 ms


	minutes

warning: invalid argument to -t: minutes
+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.563 ms


	seconds

warning: invalid argument to -t: seconds
+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.709 ms


	milliseconds

warning: invalid argument to -t: milliseconds
+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.567 ms


	microseconds

warning: invalid argument to -t: microseconds
+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
clk: 0.570 ms


	none

+------+
| L2   |
+======+
|    0 |
+------+
1 tuple
Comment 1 Stefan Manegold cwiconfidential 2018-02-08 07:22:56 CET
$ mclient --help 2>&1 | grep timer
 -t          | --timer=format     use time formatting {clock,minutes,seconds,milliseconds,microseconds,none}
Comment 2 MonetDB Mercurial Repository cwiconfidential 2018-02-08 08:03:40 CET
Changeset 1c0a5c06a226, made by Stefan Manegold <Stefan.Manegold@cwi.nl> in the MonetDB repo, refers to this bug.

For complete details, see https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1c0a5c06a226

Changeset description:

	fixing bug 6535: correct mclient help message for new --timer / -t / \t option
Comment 3 Stefan Manegold cwiconfidential 2018-02-08 08:04:48 CET
fixed by correcting mclient's help message for new --timer / -t / \t option
Comment 4 Sjoerd Mullender cwiconfidential 2018-03-29 15:39:06 CEST
The Mar2018 version has been released.