select extract(month from (current_date - interval '1 months'))
I'd expect that to return 09. Instead it returns 10. current_date = 2018-10-31 when this was executed.
Postgresql returns 10 as I expected.
Is this a bug or expected behavior?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.