rails/rails — pull request #14091 by patricksrobertson (2014-02-18 14:11:37+00:00)
Title: Replace nil checks in Quoting with a NullColumn.

This commit takes the nil check in the Connection adapters and replaces it with an
implementation of the NullObject pattern to avoid uncessary code branching. I would
have preferred to inject the NullColumn object directly, instead of using a nilguard,
but was unable to locate the code that passes a nil argument into the quote method.

Even without that injection, this eliminates three code branches that weren't necessary.