Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CONPY-271: Added cursor.metadata property
Similiar to description property, this property returns a dictionary with complete metadata. The dictionary contains the following keys: - catalog: catalog (always 'def') - schema: current schema - field: alias column name or if no alias was specified column name - org_field: original column name - table: alias table name or if no alias was specified table name - org_table: original table name - type: column type - charset: character set (utf8mb4 or binary) - length: The length of the column - max length: The maximum length of the column - decimals: The numer of decimals - flags: Flags (flags are defined in constants.FIELD_FLAG) - ext_type: Extended data type (types are defined in constants.EXT_FIELD_TYPE) This fixes also CONPY-270: Instead of checking BINARY_FLAG we now check character set for binary object types.
- Loading branch information
Showing
7 changed files
with
256 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
MariaDB EXT_FIELD_TYPE Constants | ||
These constants represent the extended field types supported by MariaDB. | ||
Extended field types are defined in module *mariadb.constants.EXT_FIELD_TYPE* | ||
""" | ||
|
||
NONE =0 | ||
JSON = 1 | ||
UUID = 2 | ||
INET4 = 3 | ||
INET6 = 4 | ||
POINT = 5 | ||
MULTIPOINT = 6 | ||
LINESTRING = 7 | ||
MULTILINESTRING = 8 | ||
POLYGON = 9 | ||
MULTIPOLYGON = 10 | ||
GEOMETRYCOLLECTION = 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.