Andres
02/06/2025, 5:51 PMsomeColumn
was not defined I was using something like some
instead and it essentially basically deleted all my rows.
Mytable.deleteWhere {
Mytable.someColumn eq someColumn
}
DELETE FROM mytable where mytable.some_column = mytable.some_column
Daniel Pitts
02/06/2025, 8:42 PMsomeColumn
resolved. There isn't a way to make this a compiler error, if that's what you're asking. You'll just need to make sure you have unit-tests that cover these use-cases.Andres
02/06/2025, 8:45 PMDaniel Pitts
02/06/2025, 8:46 PMGrigory Panko
02/06/2025, 10:41 PMeq
function (and probably other comparison functions) if receiver ===
parameter, then probably something unexpected is happening (I can't imagine any use-case where you would like to compare expression with itself) and exception can be thrownDaniel Pitts
02/07/2025, 3:51 AM