Row Information
Creating Vuser Scripts
Chapter 9, page 152
Database Vuser Scripts · Developing Database Vuser Scripts
In
Row Information
VuGen generates an lrd_fetch function for each SQL query.
The second parameter of the function indicates the number of rows fetched. This
number can be positive or negative.
Positive Row Values
A positive value shows the number of rows fetched during recording, and indicates
that not all rows were fetched. (For example, if the operator cancelled the query
before it was completed.)
In the following example, four rows were retrieved during the database query, but
not all of the data was fetched.
During execution, the script always retrieves the number of rows indicated by the
positive value (provided the rows exist.)
lrd_fetch(Csr1, -4, 1, 0, PrintRow7, 0);
lrd_fetch(Csr1, 4, 1, 0, PrintRow7, 0);