libpq confusion

From: Igor Korot <ikorot01(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: libpq confusion
Date: 2017-09-20 03:36:53
Message-ID: CA+FnnTyTVohx+ENb5ub9fa_fdFzj5ftTOmUrxUhDhgKes7xmDg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, ALL,

draft=# SELECT 1 FROM abcattbl WHERE abt_tnam = 'leagues';
?column?
----------
(0 rows)

However running it thru the PQexecParam() I am getting "PGRES_TUPLES_OK"
which means that the such record exist.

How do I properly check if the record exists from libpq?

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2017-09-20 04:14:10 Re: libpq confusion
Previous Message Alex Samad 2017-09-20 01:59:20 problem