Add option binary for cursor. When set to true cursor will always try
to use the client/server binary protocol, even when no parameter were
passed to execute.
Added optional boolean parameter 'dictionary' for cursor class.
When dictionary parameter was set to true, the fetch operations will
return rows from result set as Dict.
1) When retrieving data with column type MYSQL_TYPE_NEWDECIMAL C/Python
now loads the decimal module and converts data from string into Pythons
decimal.Decimal type.
2) Wnen sending a decimal.Decimal parameter, value will be converted to string
and send with type MYSQL_TYPE_NEWDECIMAL to server.
When using a buffered cursor, we need to store the field_count inside
Mrdb_Cursor, since db.commit/rollback will overwrite/clear mysql->field_count
inside Connector/C.
When converting time or datetime values with microseconds, the
calculation was wrong, e.g. a millisecond value of .123 was converted
to .000123 instead of .123000. This was already fixed in C/C but not
in C/Python.
- added mutexes for thread safety
- when calling get_connection thread pool will now not return the next
free connection, but the connection that was not used the longest time.
While the default paramstyle is still 'qmark', MariaDB Connector/Python
now also supports the paramstyles 'format' and 'pyformat'. The paramstyles
can't be mixed.
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.
directly in BLOB. They will be identified in function mariadb_get_pickled()
under the following conditions:
- First two bytes must be 0x8003
- Last byte must be 0x2E
- the depickling call must return a valid (not NULL) object.
mariadb.indicator_null,
mariadb.indicator_default,
mariadb.indictor.ignore
Added support for Tuple and list objects:
List and Tuple will be stored as blob in a dynamic column