Skip to content

--count is wrong on multiple tables #171

Closed
@mastercho

Description

@mastercho

Describe the bug
When try to run --count on multiple tables, instead giving each table count gives 1 total for both tables which is not correct number either.

To Reproduce
Steps to reproduce the behavior:

  1. clone the latest version
    -T ps_employee,ps_customer --count --batch
    Shows
+-------------------------+---------+
| Table                   | Entries |
+-------------------------+---------+
| ps_employee,ps_customer | 71325   |
+-------------------------+---------+

-T ps_customer --count --batch

+-------------+---------+
| Table       | Entries |
+-------------+---------+
| ps_customer | 14265   |
+-------------+---------+

-T ps_employee --count --batch

+-------------+---------+
| Table       | Entries |
+-------------+---------+
| ps_employee | 5       |
+-------------+---------+

Expected behavior
To give correct entries for both tables

Desktop (please complete the following information):

  • OS: Windows 10
  • Ghauri version which is causing the error (should be latest) 1.3.5
  • Type of SQL injection which cause the error: time
  • Phase where error occur: table/column/data

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions