Fix bug found by agentzh (cheaper way than reverted commit).
Fix bug found by agentzh (cheaper way than reverted commit).

nagyistoce/odoo-ngx_postgres,FRiCKLE/ngx_postgres,nagyistoce/odoo-ngx_postgres,paladin74/ngx_postgres,paladin74/ngx_postgres,lightcn/ngx_postgres,lightcn/ngx_postgres,FRiCKLE/ngx_postgres