Fix prepared statements for PostgreSQL driver.

libpq requires zero-terminated strings for text arguments.
This commit is contained in:
Alexey Kopytov
2017-01-23 22:51:58 +03:00
parent 0e49aa1edb
commit deb4994144
5 changed files with 30 additions and 6 deletions

View File

@ -37,6 +37,12 @@ SQL Lua API + PostgreSQL tests
--
bar nil
--
FATAL: PQprepare() failed: ERROR: relation "nonexisting" does not exist
LINE 1: SELECT * FROM nonexisting
^
SQL API error
--
<sql_param>
<sql_param>
Unsupported argument type: 8