Hmm, yeah. And changing that to a MyISAM table isn't the best idea because the table changes so often it has the tendency to crash on some systems when it's actually written to disk.
We're probably just going to have to trim/cut the referer variable at 255 characters before doing the insert.