Just had a weird interesting case where Diesel reminded me that a query I thought was fine could actually fail in a very simple case. If I'd done the change I wanted to make this absolutely would have caused what used to result in a 404 to instead result in a 500
-
Show this thread
-
I hear this story from other folks a lot, but it's definitely way more impactful when I run into it myself. Obviously I'm biased in favor of Diesel, but this literally saved me hours of debugging time
1 reply 0 retweets 8 likesShow this thread -
Replying to @sgrif
I'm curious about the details of what happened / how diesel caught this. Sounds like a good topic for
@_yakshave next time?1 reply 0 retweets 0 likes -
Replying to @redtwitdown @_yakshave
Nah, not really. It's like less than a minute to discuss, not super interesting. Was basically just a reminder that subselects can return 0 rows which would have led to an error about trying to insert null in a really confusing fashion
1 reply 0 retweets 1 like -
Replying to @sgrif @_yakshave
Oh, OK, but it's still cool that diesel catches this so maybe worth that minute.
1 reply 0 retweets 1 like
Yeah, I'll try to remember to give it a mention
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.