Skip to content

Fix: MS Access DateTime parameter handling with milliseconds#737

Open
DEllingsworth wants to merge 1 commit intoCollaboratingPlatypus:developmentfrom
DEllingsworth:fix/msaccess-datetime-milliseconds-issue-736
Open

Fix: MS Access DateTime parameter handling with milliseconds#737
DEllingsworth wants to merge 1 commit intoCollaboratingPlatypus:developmentfrom
DEllingsworth:fix/msaccess-datetime-milliseconds-issue-736

Conversation

@DEllingsworth
Copy link
Copy Markdown
Contributor

MS Access OLE DB provider cannot handle DateTime parameters with sub-second precision. This fix truncates milliseconds from DateTime values before sending them to the database.

  • Added DateTime truncation in MSAccessDatabaseProvider.MapParameterValue()
  • Added regression test to verify the fix

Fixes #736

MS Access OLE DB provider cannot handle DateTime parameters with
sub-second precision. This fix truncates milliseconds from DateTime
values before sending them to the database.

- Added DateTime truncation in MSAccessDatabaseProvider.MapParameterValue()
- Added regression test to verify the fix

Fixes CollaboratingPlatypus#736
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.

MS Access OLE DB: DateTime parameters with milliseconds cause "Data type mismatch" error

1 participant