arcapos / luapgsql

Lua binding for PostgreSQL
108 stars 24 forks source link

res_index off-by-one error #44

Closed daurnimator closed 7 years ago

daurnimator commented 7 years ago

In res_index you have the code:

    if (row < 0 || row > PQntuples(res))

This should be >=.

mbalmer commented 7 years ago

Fixed in the code. Thanks.