* Assign a "unique" number for a cursor. * * These really only need to be unique per connection within a transaction. * For the moment we ignore the per-connection point and assign them across * all connections in the transaction, but we ask for the connection to be * supplied in case we want to refine that. * * Note that even if wraparound happens in a very long transaction, actual * coll
| 653 | * collisions are highly improbable; just be sure to use %u not %d to print. |
| 654 | */ |
| 655 | unsigned int |
| 656 | GetCursorNumber(PGconn *conn) |
| 657 | { |
| 658 | return ++cursor_number; |
| 659 | } |
| 660 | |
| 661 | /* |
| 662 | * Assign a "unique" number for a prepared statement. |
no outgoing calls
no test coverage detected