Uploaded image for project: 'MariaDB Connector/C++'
  1. MariaDB Connector/C++
  2. CONCPP-37

Inconcistency in getters results for DATE types field between text(statement) and binary(prepared statement) resultsets

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 0.9.4
    • General
    • None

    Description

      Numeric getters return year or hour value for date/time types for text resultsets, and throw exception that conversion is impossible, for binary resultsets. I am not sure what is better here, but behavior should be similar . Exception looks a bit more natural here.
      Also, for YEAR type getDate behaves differently - date(YEAR-01-01) for text protocol, "Can't be converted" exception for binary.

      Attachments

        Activity

          People

            Lawrin Lawrin Novitsky
            Lawrin Lawrin Novitsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.