Skip to content

Time: 0.001s suddenly started being printed twice. #1345

Description

@your-diary

Recently, timing information such as Time: 0.001s suddenly started to be printed twice.

Possible cause (main.py):

                    if special.is_timing_enabled():
                        self.echo(f"Time: {t:0.03f}s")
                    self.echo(f"Time: {t:0.03f}s")

Workaround: setting timing = False in ~/.myclirc resolves the duplication (only one information is printed)


It was reproducible inside a minimal Alpine container with mycli, version 1.38.3 installed and with the default ~/.myclirc used:

MySQL root@test_service_mysql:t> SELECT 1;

+---+
| 1 |
+---+
| 1 |
+---+

1 row in set
Time: 0.013s
Time: 0.013s <- duplicated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions