@@ -397,9 +397,9 @@ static bool DetectConfigChange(Cursor* cur)
397
397
{
398
398
return false ;
399
399
}
400
- if (cur->converted_types )
400
+ if (cur->bound_converted_types )
401
401
{
402
- switch (PyObject_RichCompareBool (cur->converted_types , converted_types, Py_EQ))
402
+ switch (PyObject_RichCompareBool (cur->bound_converted_types , converted_types, Py_EQ))
403
403
{
404
404
case -1 : // error
405
405
Py_DECREF (converted_types);
@@ -417,16 +417,16 @@ static bool DetectConfigChange(Cursor* cur)
417
417
converted_types_changed = true ;
418
418
}
419
419
}
420
- else if (cur->converted_types )
420
+ else if (cur->bound_converted_types )
421
421
{
422
422
converted_types_changed = true ;
423
423
}
424
424
425
- if (cur->UseNativeUUID != native_uuid || converted_types_changed)
425
+ if (cur->bound_native_uuid != native_uuid || converted_types_changed)
426
426
{
427
- Py_XDECREF (cur->converted_types );
428
- cur->converted_types = converted_types;
429
- cur->UseNativeUUID = native_uuid;
427
+ Py_XDECREF (cur->bound_converted_types );
428
+ cur->bound_converted_types = converted_types;
429
+ cur->bound_native_uuid = native_uuid;
430
430
431
431
if (cur->description != Py_None)
432
432
{
@@ -442,6 +442,7 @@ static bool DetectConfigChange(Cursor* cur)
442
442
return true ;
443
443
}
444
444
445
+
445
446
static bool free_results (Cursor* self, int flags)
446
447
{
447
448
// Internal function called any time we need to free the memory associated with query results. It is safe to call
@@ -463,7 +464,7 @@ static bool free_results(Cursor* self, int flags)
463
464
{
464
465
BindColsFree (self, PyTuple_GET_SIZE (self->description ));
465
466
}
466
- Py_XDECREF (self->converted_types );
467
+ Py_XDECREF (self->bound_converted_types );
467
468
468
469
if (self->colinfos )
469
470
{
@@ -702,19 +703,19 @@ static bool PrepareResults(Cursor* cur, int cCols)
702
703
}
703
704
}
704
705
705
- cur->UseNativeUUID = UseNativeUUID ();
706
+ cur->bound_native_uuid = UseNativeUUID ();
706
707
if (cur->cnxn ->map_sqltype_to_converter )
707
708
{
708
- cur->converted_types = PyDict_Keys (cur->cnxn ->map_sqltype_to_converter );
709
- if (!cur->converted_types )
709
+ cur->bound_converted_types = PyDict_Keys (cur->cnxn ->map_sqltype_to_converter );
710
+ if (!cur->bound_converted_types )
710
711
{
711
712
PyMem_Free (cur->colinfos );
712
713
return false ;
713
714
}
714
715
}
715
716
else
716
717
{
717
- cur->converted_types = 0 ;
718
+ cur->bound_converted_types = 0 ;
718
719
}
719
720
720
721
if (!BindCols (cur, cCols))
@@ -2660,8 +2661,8 @@ Cursor_New(Connection* cnxn)
2660
2661
cur->messages = Py_None;
2661
2662
cur->valueBufs = 0 ;
2662
2663
cur->cbFetchedBufs = 0 ;
2663
- cur->converted_types = 0 ;
2664
- cur->UseNativeUUID = 0 ;
2664
+ cur->bound_converted_types = 0 ;
2665
+ cur->bound_native_uuid = 0 ;
2665
2666
2666
2667
Py_INCREF (cnxn);
2667
2668
Py_INCREF (cur->description );
0 commit comments