sql - Is date - TRUNC(date) ever larger than 1? -


i reverse-engineering legacy code written company. includes following statement

update table set deliverydate = trunc(deliverydate) deliverydate - trunc(deliverydate) > 1 

is dead code? there way statement ever match row? maybe absurdly uncommon condition related daylight saving time?

the statement executed on oracle server (version unknown).

deliverydate - trunc(deliverydate) less one, update nothing. there no exception that.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -