Search Postgresql Archives

Re: Number of updated rows with LibPQ

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le ven. 14 oct. 2022 à 13:52, Dominique Devienne <ddevienne@xxxxxxxxx> a écrit :
On Wed, Oct 5, 2022 at 8:17 PM Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
> Laurenz Albe <laurenz.albe@xxxxxxxxxxx> writes:
> > On Wed, 2022-10-05 at 16:38 +0200, Dominique Devienne wrote:
> > Yes, you have to use PQcmdTuples(), and you have to convert the string to an integer.
> > But don't worry: the result will *not* be "INSERT 0 5", it will be just "5"

Thanks. What's the leading 0 though, then?

The leading number was the OID of the inserted row if you only had one row and if the table had OID on rows. Otherwise, it was zero. It's always 0 nowadays since you can't have OID on rows.


--
Guillaume.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux