The PostgreSQL date functions documentation contains the following example:
date '2001-09-28' + integer '7'
Why does it consist of converting a string to an integer? Why not phrase it like this:
date '2001-09-28' + 7
Is there some tangible reason why integer '7'
is preferable to plain old 7
?