Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for MySQL strict mode and for object creation #22

Closed
wants to merge 6 commits into from

Conversation

larryl
Copy link
Contributor

@larryl larryl commented Aug 8, 2019

No description provided.

Larry Leszczynski added 6 commits August 5, 2019 13:01
Also got rid of the $mysql->max_connections(1) since it wasn't doing
what it was intended to do (only decreased the size of cached
connection for reuse, not the total number of allowed active
connections).
Re-use $db where it makes sense, instead of getting a new DB connection
via $mysql->db.

The “reset” sub still gets separate connections, in case there’s an
opportunity for parallel async activity.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 98.02% when pulling 51e517b on GrantStreetGroup:master into 6cf7d4b on preaction:master.

@preaction preaction force-pushed the master branch 5 times, most recently from 95a8a76 to 2fedaef Compare August 11, 2019 01:52
@preaction
Copy link
Owner

I could not seem to get Travis tests to fail before this patch, so I'm not sure we'll have regression coverage... But I merged this and will tag a release presently. Thanks!

@preaction preaction closed this Aug 11, 2019
preaction added a commit that referenced this pull request Aug 11, 2019
  [Added]

  - Added Travis tests for more MySQL and MariaDB versions. Thanks
    @paultcochrane for the initial work on this. (Github #1)
  - You can now pass in a connected Mojo::mysql instance to the backend
    to make it use that (instead of creating its own instance). This can
    help make sure that concurrent connections are limited and reused.
    Thanks @larryl & @GrantStreetGroup for contributing this!
    (Github #22)

  [Fixed]

  - Fixed SQL errors under MySQL strict mode (Specifically, the SQL
    GROUP BY columns need to be specified as SELECTed). Thanks @larryl
    & @GrantStreetGroup! (Github #22)
  - Fixed backend creating dozens of connections to MySQL. Now basic
    operations should be far more efficient. Thanks @larryl
    & @GrantStreetGroup! (Github #22)
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.

None yet

3 participants