File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -923,6 +923,10 @@ mariadb_get_parameter(MrdbCursor *self,
923
923
PyObject * row = NULL ,
924
924
* column = NULL ;
925
925
uint8_t rc = 1 ;
926
+ long caps ;
927
+
928
+ mariadb_get_infov (self -> connection -> mysql ,
929
+ MARIADB_CONNECTION_EXTENDED_SERVER_CAPABILITIES , & caps );
926
930
927
931
if (is_bulk )
928
932
{
@@ -973,8 +977,7 @@ mariadb_get_parameter(MrdbCursor *self,
973
977
/* check if an indicator was passed */
974
978
if (MrdbIndicator_Check (column ))
975
979
{
976
- if (!(self -> connection -> extended_server_capabilities &
977
- (MARIADB_CLIENT_STMT_BULK_OPERATIONS >> 32 )))
980
+ if (!(caps & (MARIADB_CLIENT_STMT_BULK_OPERATIONS >> 32 )))
978
981
{
979
982
mariadb_throw_exception (NULL , Mariadb_DataError , 0 ,
980
983
"MariaDB %s doesn't support indicator variables. " \
@@ -986,7 +989,7 @@ mariadb_get_parameter(MrdbCursor *self,
986
989
param -> value = NULL ; /* you can't have both indicator and value */
987
990
} else if (column == Py_None ) {
988
991
param -> value = NULL ;
989
- if (self -> connection -> extended_server_capabilities &
992
+ if (caps &
990
993
(MARIADB_CLIENT_STMT_BULK_OPERATIONS >> 32 ))
991
994
{
992
995
param -> indicator = STMT_INDICATOR_NULL ;
You can’t perform that action at this time.
0 commit comments