File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -295,7 +295,7 @@ def read(self):
295
295
try :
296
296
data = self .connection ._resp_json ["data" ]
297
297
except :
298
- raise err .InterfaceError ("Unsupported response format" )
298
+ raise err .InterfaceError ("Unsupported response format: no data field " )
299
299
if data is None :
300
300
# exec result
301
301
return
@@ -317,3 +317,16 @@ def read(self):
317
317
row .append (column )
318
318
rows .append (tuple (row ))
319
319
self .rows = tuple (rows )
320
+
321
+ try :
322
+ self .field_count = len (data ['columns' ])
323
+
324
+ description = []
325
+ for i in range (self .field_count ):
326
+ fields = []
327
+ fields .append (data ['columns' ][i ])
328
+ fields .append (data ['types' ][i ])
329
+ description .append (tuple (fields ))
330
+ self .description = tuple (description )
331
+ except :
332
+ raise err .InterfaceError ("Proxy return column count and types count are not equal" )
You can’t perform that action at this time.
0 commit comments