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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

If our connection is explicitly non-strict, tell MySQL #16065

Merged
merged 1 commit into from
Jul 5, 2014

Conversation

matthewd
Copy link
Member

@matthewd matthewd commented Jul 5, 2014

We default to making the connection strict, but have historically relied on the MySQL default when we want it to be non-strict. On some (recent?) versions of MySQL, new connections default to being strict, so if we've been told 'strict:false', we're obliged to pass that on.

This fixes a test failure that we've seen turn up on relatively-new development machines, so we do already have a test covering it.

Specifically, a bunch of the OpenAcademy students were seeing this, and we just told them to ignore it at the time. 馃槓

... and I was also seeing it, but I rarely run MySQL tests locally. 馃槓 馃槓

We default to making the connection strict, but have historically relied
on the MySQL default when we want it to be non-strict. On some (recent?)
versions of MySQL, new connections default to being strict, so if we've
been told 'strict:false', we're obliged to pass that on.

This fixes a test failure that we've seen turn up on relatively-new
development machines, so we do already have a test covering it.
@rafaelfranca
Copy link
Member

if no_failures then :shipit:

matthewd added a commit that referenced this pull request Jul 5, 2014
If our connection is explicitly non-strict, tell MySQL
@matthewd matthewd merged commit acec038 into rails:master Jul 5, 2014
matthewd added a commit that referenced this pull request Jul 5, 2014
If our connection is explicitly non-strict, tell MySQL
matthewd added a commit that referenced this pull request Jul 5, 2014
If our connection is explicitly non-strict, tell MySQL
@matthewd matthewd deleted the mysql-explicit-non-strict branch July 5, 2014 21:15
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

2 participants