forked from jeremyevans/sequel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimization for very specific use case of all UTC times in database …
…and app
- Loading branch information
Andy Goodell
committed
Nov 17, 2011
1 parent
1c8dd00
commit 3bb7a73
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3bb7a73
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are assuming a very specific format here (probably valid in your own application, but not valid in general). Instead of monkey patching, I would recommend extending the Sequel::Database object with a module that did the same check, but called super if v was not a String or the length was less than 19.