mwild1 / luadbi

Multi-backend SQL database library for Lua
MIT License
41 stars 15 forks source link

[postgresql] fix coredump #40

Closed linuxmaniac closed 6 years ago

linuxmaniac commented 6 years ago

Program terminated with signal SIGSEGV, Segmentation fault.

0 dbd_postgresql_statement_create (L=0x161c010, conn=0x1809288, sql_query=) at dbd/postgresql/statement.c:414

414 lua_pushfstring(L, DBI_ERR_ALLOC_STATEMENT, PQerrorMessage(statement->conn->postgresql)); (gdb) p statement $1 = (statement_t ) 0x0 (gdb) p conn $1 = (connection_t ) 0x1809288 (gdb) p conn->postgresql $2 = (PGconn *) 0x18092a0