Open dawkot opened 4 years ago
Consider db to be a valid connection and table to be a valid table
db
table
echo "a" discard db.get_value sql "SELECT 1 FROM table WHERE false" echo "b"
a row number 0 is out of range 0..-1 b
a
The above error happens if a program calls PQgetvalue(), PQgetlength(), or PQgetisnull() with a row number of -1 and if there were no rows in the result. https://www.postgresql.org/message-id/014c01c57be2$60b97780$3202a8c0@pi
$ nim -v Nim Compiler Version 1.0.99 [Windows: amd64]
In what universe is dumping stuff to the terminal a viable error reporting strategy? I thought Postge is a piece of quality... :-(
Example
Consider
db
to be a valid connection andtable
to be a valid tableCurrent Output
Expected Output
Possible Solution
Additional Information