From 5a158daa920aff63c6ae85e4dd5549b86287bd3c Mon Sep 17 00:00:00 2001 From: Vilnis Termanis Date: Wed, 13 Dec 2017 11:39:24 +0000 Subject: [PATCH] mysql - Fix field names type (extension) - Field names previously returned as bytes if field type is binary --- src/mysql_capi.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/mysql_capi.c b/src/mysql_capi.c index 6d60d0e..38da038 100644 --- a/src/mysql_capi.c +++ b/src/mysql_capi.c @@ -220,32 +220,32 @@ fetch_fields(MYSQL_RES *result, unsigned int num_fields, MY_CHARSET_INFO *cs, field = PyTuple_New(11); decoded= mytopy_string(myfs[i].catalog, myfs[i].catalog_length, - myfs[i].flags, charset, use_unicode); + 0, charset, use_unicode); if (NULL == decoded) return NULL; // decode error PyTuple_SET_ITEM(field, 0, decoded); decoded= mytopy_string(myfs[i].db, myfs[i].db_length, - myfs[i].flags, charset, use_unicode); + 0, charset, use_unicode); if (NULL == decoded) return NULL; // decode error PyTuple_SET_ITEM(field, 1, decoded); decoded= mytopy_string(myfs[i].table, myfs[i].table_length, - myfs[i].flags, charset, use_unicode); + 0, charset, use_unicode); if (NULL == decoded) return NULL; // decode error PyTuple_SET_ITEM(field, 2, decoded); decoded= mytopy_string(myfs[i].org_table, myfs[i].org_table_length, - myfs[i].flags, charset, use_unicode); + 0, charset, use_unicode); if (NULL == decoded) return NULL; // decode error PyTuple_SET_ITEM(field, 3, decoded); decoded= mytopy_string(myfs[i].name, myfs[i].name_length, - myfs[i].flags, charset, use_unicode); + 0, charset, use_unicode); if (NULL == decoded) return NULL; // decode error PyTuple_SET_ITEM(field, 4, decoded); decoded= mytopy_string(myfs[i].org_name, myfs[i].org_name_length, - myfs[i].flags, charset, use_unicode); + 0, charset, use_unicode); if (NULL == decoded) return NULL; // decode error PyTuple_SET_ITEM(field, 5, decoded);