Skip to content

Instantly share code, notes, and snippets.

@krhitoshi
Created October 10, 2012 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krhitoshi/3863207 to your computer and use it in GitHub Desktop.
Save krhitoshi/3863207 to your computer and use it in GitHub Desktop.
DataMapper MySQL bug by '0000-00-00 00:00:00'
class DateTime
class << self
alias org_new new
def new(year = -4712, mon = 1, mday = 1, hour = 0, min = 0, sec = 0, offset = 0, start = Date::ITALY)
if year == 0
nil
else
org_new(year, mon, mday, hour, min, sec, offset, start)
end
end
end
end
gem outdated
addressable (2.2.8 < 2.3.2)
builder (3.0.3 < 3.1.3)
bundler (1.2.0 < 1.2.1)
coderay (1.0.7 < 1.0.8)
do_mysql (0.10.8 < 0.10.9)
do_sqlite3 (0.10.8 < 0.10.9)
jquery-rails (2.1.2 < 2.1.3)
minitest (2.5.1 < 4.1.0)
rack-test (0.6.1 < 0.6.2)
rspec-expectations (2.11.2 < 2.11.3)
rspec-mocks (2.11.2 < 2.11.3)
sinatra (1.3.2 < 1.3.3)
sprockets (2.1.3 < 2.6.0)
turn (0.8.3 < 0.9.6)
whois (2.6.4 < 2.7.0)
gem update do_mysql
Updating installed gems
Updating do_mysql
Fetching: do_mysql-0.10.9.gem (100%)
Building native extensions. This could take a while...
Successfully installed do_mysql-0.10.9
Gems updated: do_mysql
Installing ri documentation for do_mysql-0.10.9...
Installing RDoc documentation for do_mysql-0.10.9...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment