-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Marshal 'BYTES' and 'TIME' column / paramter types #2806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Marshal 'BYTES' and 'TIME' column / paramter types #2806
Conversation
@@ -64,9 +77,17 @@ def _datetime_from_json(value, field): | |||
def _date_from_json(value, field): | |||
"""Coerce 'value' to a datetime date, if set or not nullable""" | |||
if _not_null(value, field): | |||
# value will be a string, in YYYY-MM-DD form. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
def _time_from_json(value, field): | ||
"""Coerce 'value' to a datetime date, if set or not nullable""" | ||
if _not_null(value, field): | ||
# value will be a string, in HH:MM:SS form. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -64,9 +77,17 @@ def _datetime_from_json(value, field): | |||
def _date_from_json(value, field): | |||
"""Coerce 'value' to a datetime date, if set or not nullable""" | |||
if _not_null(value, field): | |||
# value will be a string, in YYYY-MM-DD form. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
I will merge as soon as either Circle CI or Travis passes the Py3k fix I just pushed. |
Travis is showing build failures for docs which don't happen on Circle or on my local machine. |
Closes #2229.