[go-nuts] Re: Trouble with pgx package

2021-10-02 Thread Tamás Gulácsi
Another problem is that INSERT is not a query. Use QueryContext for SELECT statements, and ExecContext for everything else. muhorto...@gmail.com a következőt írta (2021. október 2., szombat, 12:52:44 UTC+2): > Just started making my first web, I don't quite understand the Query Row > function.

[go-nuts] Re: Trouble with pgx package

2021-10-02 Thread jake...@gmail.com
If you want to know what the error is, I suggest you print it. That will give you more information. It will also help anyone trying to help you. Also, I notice that you *probably *have "defer conn.Close(context.Background())" in the wrong place.* I don't use pgx*, but the normal paradigm is to