arcapos / luapgsql

Lua binding for PostgreSQL
108 stars 24 forks source link

:prepare should return nil on failure #38

Closed daurnimator closed 8 years ago

daurnimator commented 8 years ago

PQprepare returns NULL on failure. You should return nil in this case.

Probably need to do the same for the other execution functions.

mbalmer commented 8 years ago

This is fixed in pgsql-1.6.1, thanks.