Just a simple formula.
imgur.com/a/oSSOSqNPosted Oct 2, 2019, 10:42 PM UTC
Posted Oct 2, 2019, 10:42 PM UTC
CAST(5 AS numeric(28,10))
Clearly some software is doing this, but why can't it calculate half of these values itself before generating the SQL?
Is there another way to write a 5 literal with that type in shorthand? I can't think of one, but my SQL isn't all it could be.
Psql I'm pretty sure you could do 5::numeric(28, 10)
Is this fizzbuzz?
Lol, I would love to see someone come up with this at an interview.
Looks like something I'd see at work in some ol ad hoc bullshit.
Looks as bad as minified jquery
Can you hit that format button for me chief?
I think I just had a stroke.
It's a simple spell, but quite unbreakable.
It's an older reference, but it checks out.
best username ever
May be auto generated for something where perfomance doesn't matter...
When does performance not matter?
Tuesdays
When you've got a task that runs once a week and takes 10 seconds.
For ad-hoc queries done for diagnostic purposes.
The query planner is probably going to optimize most of that away anyway... and it's just arithmetic anyhow.
I see they got all their bases covered.