You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CDK: Add new method end_of_reply() to Reply interface.
This method checks if there is more data in the reply, without moving to the next result if it exists. This is needed for correct error reporting, because has_results() starts reading next result (if it exists) and can throw error if server reports one.
Copy file name to clipboardExpand all lines: cdk/include/mysql/cdk/api/reply.h
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,6 @@ class Reply
47
47
48
48
typedeftypename Traits::row_count_trow_count_t;
49
49
50
-
51
50
/*
52
51
Method has_results() Returns true if there are result sets included in the
53
52
reply. To access these result sets one has to create a cursor. The exact
@@ -58,6 +57,7 @@ class Reply
58
57
In other words, has_results() informs about result sets that can be still �consumed� and if it returns false it means that all of them have been processed.
59
58
Returns true if there are result sets included in the reply.
60
59
*/
60
+
61
61
virtualboolhas_results() = 0;
62
62
63
63
@@ -66,8 +66,17 @@ class Reply
66
66
(and thus avoiding allocation of cursor resources). If reply has several
67
67
result sets then the next one becomes available.
68
68
*/
69
+
69
70
virtualvoidskip_result() = 0;
70
71
72
+
/*
73
+
This method returns true if all results in the reply have been consumed.
74
+
If it returns false, then there are more results pending, but they do not
75
+
need to contain rows (so that creating a new cursor might fail). To check
76
+
if there are more rows to consume with a cursor, call has_results().
77
+
*/
78
+
79
+
virtualboolend_of_reply() = 0;
71
80
72
81
/*
73
82
Method has_out_params() informs if this reply contains values for output
0 commit comments