MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/shittyprogramming/comments/dchwf4/just_a_simple_formula/f28ju3t/
r/shittyprogramming • u/recursive • Oct 02 '19
19 comments sorted by
View all comments
18
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?
0 u/[deleted] Oct 03 '19 [deleted] — view deleted comment 1 u/thirdegree Oct 03 '19 Psql I'm pretty sure you could do 5::numeric(28, 10)
0
[deleted] — view deleted comment
1 u/thirdegree Oct 03 '19 Psql I'm pretty sure you could do 5::numeric(28, 10)
1
Psql I'm pretty sure you could do 5::numeric(28, 10)
5::numeric(28, 10)
View all comments
18
u/basilect Oct 03 '19
Clearly some software is doing this, but why can't it calculate half of these values itself before generating the SQL?