leafo / pgmoon

A pure Lua Postgres driver for use in OpenResty & more
MIT License
390 stars 93 forks source link

postgres:query() does not return error as 2. parameter #139

Open stuta opened 1 year ago

stuta commented 1 year ago

Documentation says:

-- return values for successful query
local result, err, num_queries = postgres:query("select name from users limit 2")

Function receive_query_result() returns result, num_queries, notifications, notices, it should be result, nil, num_queries, notifications, notices.