Created
October 10, 2013 07:08
-
-
Save yancya/6914252 to your computer and use it in GitHub Desktop.
下限、上限が共に閉じてる Range 型に対して lower と upper をかけたときの挙動が気になる。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- PostgreSQL 9.2 以降で動く | |
select lower(daterange('2013-08-01', '2013-08-31', '[]')) | |
,upper(daterange('2013-08-01', '2013-08-31', '[]')) | |
; | |
-- lower | upper | |
--------------+------------ | |
-- 2013-08-01 | 2013-09-01 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment