Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #2467 (closed defect: invalid)

Opened 3 years ago

Last modified 2 years ago

ActiveRecord uses old validation for mysql 5

Reported by: darrick@innatesoftware.com Assigned to: David
Priority: normal Milestone:
Component: ActiveRecord Version: 0.13.1
Severity: normal Keywords: mysql5 version
Cc: jonathan@bluewire.net.nz

Description

The problem is the version_meets_minimum? function in mysql411.rb. The condition is wrong because it requires all version numbers to increase, but with a new major version, the minor version number decreases. The code should be:

  def version_meets_minimum?( major, minor, revision )
    @major_ver > major || (@major_ver == major && (@minor_ver > minor || (@minor_ver == minor && @revision_num >= revision)))
  end

Change History

03/08/06 09:36:34 changed by jonathan@bluewire.net.nz

  • status changed from new to closed.
  • resolution set to invalid.

mysql411.rb is not used anymore... at least not as far as I can tell!

03/08/06 09:36:44 changed by anonymous

  • cc set to jonathan@bluewire.net.nz.