From 522de0871a6ad87c1e9da2c9ac771e0984b83528 Mon Sep 17 00:00:00 2001 From: "Ian M. Jones" Date: Fri, 6 Mar 2020 17:40:24 +0000 Subject: [PATCH] pg: fix zero being used for port when not specified in pg.Config --- vlib/pg/pg.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/pg/pg.v b/vlib/pg/pg.v index af7ee527d6..0372ec3cce 100644 --- a/vlib/pg/pg.v +++ b/vlib/pg/pg.v @@ -20,7 +20,7 @@ struct C.PGResult { } pub struct Config { pub: host string - port int + port int = 5432 user string password string dbname string