xkcd-Bucket icon indicating copy to clipboard operation
xkcd-Bucket copied to clipboard

Implement "I had it that way!" for large replacables too

Open dgw opened this issue 10 years ago • 1 comments

When adding a duplicate value to a small replacable, Bucket will reply "$who, I had it that way!" and will not attempt to query the database to insert the dupe.

When adding a duplicate value for a large variable, when the value is not cached (at least that's when I've confirmed this), Bucket will simply say "Okay, $who" and then spew a DB Error regarding a duplicate entry.

dgw avatar Feb 23 '15 03:02 dgw

Yeah, I'd say either suppress the error (and fail silently) or check that we're updating a large var, and not say 'okay $who' until it succeeded.

I'd avoid saying 'okay $who', then later saying 'actually, I already had it that way.'

zigdon avatar Jun 25 '15 21:06 zigdon