fix bug on PostgreSQL 9.2.x
Merge pull request #1 from kaz29/master

fix bug on PostgreSQL 9.2.x
The b630279 commit caused this bug.