Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/using_python_client_with_hazelcast_imdg.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,7 @@ formats.
- ``TIME`` with the ``HH:MM:SS[.ffffff]`` format.
- ``TIMESTAMP`` with the ``YYYY-MM-DDTHH:MM:SS[.ffffff]`` format.
- ``TIMESTAMP_WITH_TIME_ZONE`` with the ``YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:SS]``
format.
- ``DECIMAL`` with the floating point number format.

If you want to use these types in queries, you have to send them as strings
Expand Down
11 changes: 6 additions & 5 deletions hazelcast/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ class SqlColumnType(object):

DECIMAL = 6
"""
Represented by ``decimal.Decimal``.
Represented by ``str``.
"""

REAL = 7
Expand All @@ -353,22 +353,23 @@ class SqlColumnType(object):

DATE = 9
"""
Represented by ``datetime.date``.
Represented by ``str`` with the ``YYYY-MM-DD`` format.
"""

TIME = 10
"""
Represented by ``datetime.time``.
Represented by ``str`` with the ``HH:MM:SS[.ffffff]`` format.
"""

TIMESTAMP = 11
"""
Represented by ``datetime.datetime``.
Represented by ``str`` with the ``YYYY-MM-DDTHH:MM:SS[.ffffff]`` format.
"""

TIMESTAMP_WITH_TIME_ZONE = 12
"""
Represented by ``datetime.datetime`` with ``datetime.tzinfo``.
Represented by ``str`` with the ``YYYY-MM-DDTHH:MM:SS.ffffff+HH:MM[:SS]``
format.
"""

OBJECT = 13
Expand Down