Revision 591e21d7

View differences:

src/onedb/database_schema.rb
82 82
            end
83 83
        end
84 84

  
85
        gver = Gem::Version.new(version)
85
        gver = Gem::Version.new(version.dup)
86 86

  
87 87
        # Discard versions greater than the one we are searching for
88 88
        versions = VERSION_SCHEMA.keys.reject do |v|
......
91 91

  
92 92
        # Order versions in decreasing order
93 93
        versions.sort! do |a, b|
94
            Gem::Version.new(b) <=> Gem::Version.new(a)
94
            Gem::Version.new(b.dup) <=> Gem::Version.new(a.dup)
95 95
        end
96 96

  
97 97
        schema = nil

Also available in: Unified diff