Skip to content

Row count in Oracle #247

Closed Answered by anthony-tuininga
explorercpp asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, the value is found in the error record (found at the end of the response). It is the third field (starting at byte 0x95c and consisting of the bytes 0x02, 0x01, 0x90) and indicates the value is 400. Since that field can only go up to 4 bytes (2 ^ 32) the value is also found near the end of the record (starting at byte 0x97e and also consisting of the bytes 0x02, 0x01, 0x90) and indicates the value is 400. This value can go up to 8 bytes (2 ^ 64).

The Python driver only pays attention to the second value (for DML) and ignores it for queries -- since by that point the driver has already processed all of the rows and doesn't need to be told how many are there!

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@explorercpp
Comment options

@anthony-tuininga
Comment options

@explorercpp
Comment options

@cjbj
Comment options

cjbj Oct 20, 2023
Maintainer

@explorercpp
Comment options

Answer selected by explorercpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants