arcapos / luapgsql

Lua binding for PostgreSQL
108 stars 24 forks source link

res_oidValue should push nil on InvalidOid #43

Closed daurnimator closed 7 years ago

mbalmer commented 7 years ago

InvalidOid has the documented value of zero, so returning this allows you detect an invalid OID. To make thinks clearer I exposed the value as pgsql.InvalidOid.