Fix for CONPY-9 and CONPY-17:

description attribute is now implemented as getter function().
Changes:
- for strings length will now report the number of codepoints (instead) of bytes
- variable length datatypes will report -1 (packed len < 1).
- For floating point values (decimal, float, double) the values for precision and scale will be zero, in case the server sends decimals=31 (which means no precision/scale) was specified for the column.
This commit is contained in:
Georg Richter
2018-07-26 06:54:02 +02:00
parent 747e830270
commit c19b0f0404
4 changed files with 42 additions and 37 deletions

View File

@ -134,7 +134,6 @@ typedef struct {
MYSQL_FIELD *fields;
char *statement;
unsigned long statement_len;
PyObject *description;
PyObject **values;
PyStructSequence_Desc sequence_desc;
PyStructSequence_Field *sequence_fields;