Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Interpret :limit as number of bytes

#420

I've updated the patch originally from http://dev.rubyonrails.org/ticke...

Integer limits are now treated as the number of bytes for both mysql and postgresql (and sqlite, as they always were). And schema dumping also calculates the closest matching number of bytes for the types so bigint will be properly dumped as integer with a limit of 8.

Reported by Tarmo Tänav · June 15th, 2008 @ 04:03 AM

State: resolved
Milestone: 2.1.1
Assigned to: Jeremy Kemper Jeremy Kemper
Importance: none

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 2.1.1
    • State changed from new to open
    • Assigned user set to Jeremy Kemper

    June 16th, 2008 @ 12:26 PM

  2. Pedro Belo
  3. Repository
    Repository
    • State changed from open to resolved

    (from [a2eab629dcd90792b5a392e89d6260301b6fd485]) Always treat integer :limit as byte length. [#420 state:resolved]

    http://github.com/rails/rails/co...

    June 23rd, 2008 @ 04:50 AM

  4. Repository
    Repository

    (from [baddea95e183b3bef290ec433f917ee8cd806934]) Always treat integer :limit as byte length. [#420 state:resolved]

    http://github.com/rails/rails/co...

    June 23rd, 2008 @ 04:50 AM