Skip to content
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

faq.rst: Mention DATE and TIME unserialized to str #165

Merged
merged 1 commit into from Jan 9, 2014

Conversation

msabramo
Copy link
Contributor

@msabramo msabramo commented Jan 9, 2014

pymssql does not unserialize DATE and TIME columns to
datetime.date and datetime.time instances

pymssql does not unserialize ``DATE`` and ``TIME`` columns to
``datetime.date`` and ``datetime.time`` instances
msabramo added a commit that referenced this pull request Jan 9, 2014
…hydrated

faq.rst: Mention DATE and TIME unserialized to str
@msabramo msabramo merged commit b2e10c8 into master Jan 9, 2014
@rsyring
Copy link
Contributor

rsyring commented Jan 9, 2014

The code example uses 'select * from foo':

cursor.execute("SELECT * FROM foo")
cursor.fetchall()
[{u'date': u'2014-01-09', u'time': u'06:17:00.0000000',
u'datetime': datetime.datetime(2014, 1, 9, 9, 17, 56, 623000)}]

Was that intentional?

@msabramo
Copy link
Contributor Author

msabramo commented Jan 9, 2014

Well, that was the name that I used locally, but that's kind of silly and I thought I should show what the table looks like so people can reproduce it if they want (or we can run automated tests at some point in the future).

So I enhanced it in #167.

@msabramo msabramo deleted the faq_mention_date_and_time_not_dehydrated branch January 9, 2014 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants