Skip to content

Commit d18f9ad

Browse files
committed
Add CURSOR_HOLDABILITY protocol
Note this does not add holdable cursors as a feature.
1 parent 0c227e2 commit d18f9ad

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

pynuodb/protocol.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,12 @@
155155
SETRESULTSETFETCHSIZE = 123
156156
SETSTATEMENTFETCHSIZE = 124
157157
RECOVERTRANSACTION = 125
158-
SQLTEST = 126
158+
CREATESTATEMENTHOLD = 127
159+
PREPARESTATEMENTHOLD = 128
160+
PREPARECALLHOLD = 129
161+
SETCONNECTIONHOLDABILITY = 130
162+
GETCONNECTIONHOLDABILITY = 131
163+
GETRESULTSETHOLDABILITY = 132
159164

160165
# Error code values
161166
SYNTAX_ERROR = -1
@@ -369,5 +374,5 @@ def lookup_code(error_code):
369374
# The newest feature this driver supports.
370375
# The server will negotiate the highest compatible version.
371376
CURRENT_PROTOCOL_MAJOR = 1
372-
CURRENT_PROTOCOL_VERSION = MULTI_CIPHER
377+
CURRENT_PROTOCOL_VERSION = CURSOR_HOLDABILITY
373378
AUTH_TEST_STR = 'Success!'

0 commit comments

Comments
 (0)