Re: Reset the cursor to start from the record 1

2018-06-05 Thread David G. Johnston
On Tue, Jun 5, 2018 at 2:08 PM, Igor Korot wrote: > Is there a function which just reset the record pointer to 1, so I can > reprocess > those records > ​? > ​While I haven't actually programmed using this API... The documentation doesn't seem to indicate the presence of a "record pointer", it

Reset the cursor to start from the record 1

2018-06-05 Thread Igor Korot
Hi, ALL, I'd like to do the following: [code] PGresult res = PQprepare(); if( PQresultStatus( res ) != PGRES_COMMAND_OK ) { // error handling } else { PGresult res1 = PQexecPrepared(); status = PQresultStatus( res1 ); if( status != PGRES_COMMAND_OK && status != PGRES_TUPLES_OK ) {