From 69b6e682cba339492d9ecdfc53b5746c301c196b Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Tue, 30 Jul 2019 00:28:33 +0200 Subject: [PATCH] pg: fix GCC compilation error --- vlib/pg/pg.v | 1 + 1 file changed, 1 insertion(+) diff --git a/vlib/pg/pg.v b/vlib/pg/pg.v index d5d60f90df..5b116693be 100644 --- a/vlib/pg/pg.v +++ b/vlib/pg/pg.v @@ -26,6 +26,7 @@ struct C.PGResult { } fn C.PQconnectdb(a byteptr) *C.PGconn fn C.PQerrorMessage(voidptr) byteptr fn C.PQgetvalue(voidptr, int, int) byteptr +fn C.PQstatus(voidptr) int pub fn connect(dbname, user string) DB { conninfo := 'host=localhost user=$user dbname=$dbname'