Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
python-phoenixdb-1.2.1
-
None
-
If the JDBC column label is set, phoenixdb now uses it as the python DB2 API column description name field, and uses it as the key for DictCursor.
Description
Get the columnLabel (the “as name”) rather than the columnName with a cursor.
calcite 💎:sql> select c1 as hello, c2 as world from int_tbl; +-------------+-------------+ | c1 | c2 | |-------------+-------------| | 5 | 0 | | -123 | 123 | | 1 | 123456 | | -123456 | -123456 | | 10 | 50 | | -2147483648 | 1 | | 2147483647 | -2147483648 | | <null> | 10 | | <null> | <null> | | 1 | 1 | +-------------+-------------+
Attachments
Issue Links
- relates to
-
PHOENIX-6920 PhoenixResultSetMetaData doesn't distinguish between label and column_name
- Resolved
- links to