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

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

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

google shop client API returns 400 bad request error while adding an item -