Skip to content

Commit

Permalink
Fix datetime precision causing milliseconds to not be read.
Browse files Browse the repository at this point in the history
The datetime precision was no longer being read so the default was used.  This caused it to
read only up to seconds.

I had consolidated some code while fixing something else and missed an important "if" statement
that was specific to one of the instances.

Fixes mkleehammer#235
  • Loading branch information
mkleehammer committed May 18, 2017
1 parent a8eedbd commit 412598b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cnxninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ inline void GetColumnSize(Connection* cnxn, SQLSMALLINT sqltype, int* psize)
{
// I believe some drivers are returning negative numbers for "unlimited" text fields,
// such as FileMaker. Ignore anything that seems too small.
if (columnsize >= 255)
if (columnsize >= 1)
*psize = (int)columnsize;
}

Expand Down

0 comments on commit 412598b

Please sign in to comment.