1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

pg: fix GCC compilation error

This commit is contained in:
Alexander Medvednikov 2019-07-30 00:28:33 +02:00
parent 5bb8416baf
commit 69b6e682cb

View File

@ -26,6 +26,7 @@ struct C.PGResult { }
fn C.PQconnectdb(a byteptr) *C.PGconn fn C.PQconnectdb(a byteptr) *C.PGconn
fn C.PQerrorMessage(voidptr) byteptr fn C.PQerrorMessage(voidptr) byteptr
fn C.PQgetvalue(voidptr, int, int) byteptr fn C.PQgetvalue(voidptr, int, int) byteptr
fn C.PQstatus(voidptr) int
pub fn connect(dbname, user string) DB { pub fn connect(dbname, user string) DB {
conninfo := 'host=localhost user=$user dbname=$dbname' conninfo := 'host=localhost user=$user dbname=$dbname'