arrgh. goddamn you mysql, you asshole.

September 5th, 2007

Fuck. It doesn’t follow the principle of least surprise, it follows the principle of “ARRRGHGH look at me, I’m jumping out of a dark alleyway with a rusty knife”. Goddamn stupid jerk.

Ok. In this post I was complaining about RoR typecasting wrongly. Mea cuppa. It wasn’t RoR, it was mysql which was behaving badly. Rails migrations default :integer type goes to 11, man. I naively assumed that if I amped that up to :limit => 20 I would get a wider integer in mysql. NO! That would be too goddamn sensible. Instead it just pads a bog standard integer out to that width when it returns it.

The. Suck.

Fortunately there’s a plugin. Like always. There’s also been a ticket open on this issue for a while.

There’s actually a drag about having open classes and being able to make plugins so easily. I think it reduces some of the pressure on the core guys to incorporate patches, which is probably a good thing from their point of view, but not neccessarily for the rest of us. I mean I get the impression from the comments on the patch that core thinks this is a worthwhile patch (and not something that should just be closed wontfix), but its been languishing for over a year now. Just sayin is all.

programming, ruby on rails, Uncategorized | Comments | Trackback Jump to the top of this page

Leave a Reply

  •  
  •  
  •  

You can keep track of new comments to this post with the comments feed.

Recently on Flickr

    mull - 21.jpgmull - 20.jpgmull - 19.jpgmull - 18.jpg

Recently Listened

Meta

The Carousell