Skip to content

Conversation

vdaviot
Copy link

@vdaviot vdaviot commented Nov 9, 2018

Which issue this PR fixes

  • Commit 251ab85 fixes:
    • #71: session ls fails with "Error 1390: Prepared statement contains too many placeholders"
      • Also contains fixes for: #72 and #62 (1695d4f) as they are mandatory to test.

What this PR does / why we need it

If the mySQL database held too many records, the session ls command failed with an error message. The hard limit of records by query in mySQL is 65,535.
It now queries by batch of 60000 to solve the problem.

I also added an option to only list active session (--active, -a) to compensate for the increased time taken by the query on bigger databases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants