When using the PSQL OLE DB Provider, the RecordsAffected parameter of the Execute Method on a command returns different results based on the type of operation.
When performing a SELECT statement, RecordsAffected returns a -1 (negative one), which means that this option is not supported. For example:
RecordsAffected will return the correct number of records that the operation affected when performing a batch insert, update or delete.
In this scenario RecordsAffected equals
x, which is all the records that have the value 13.