JRuby (please use github issues at http://bugs.jruby.org)
  1. JRuby (please use github issues at http://bugs.jruby.org)
  2. JRUBY-3068

dbd-jdbc: Override Ruby DBI's default database return value coercion for Date / Time / Timestamp columns

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Critical Critical
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JRuby-extras
    • Labels:
      None
    • Environment:
      dbd-jdbc 0.0.1
      dbi 0.4.0
    • Testcase included:
      yes
    • Patch Submitted:
      Yes
    • Number of attachments :
      2

      Description

      Ruby DBI 0.4.x now does some default type coercion when extracting data. This only seems to be causing a problem with Date, Time, and Timestamp columns. That attached patch overrides this type coercion for these three data types. The patch included will output the wrong class type for the Date/Time columns before the patch is applied.

      1. return_value.patch
        5 kB
        Chad Johnson
      2. test_return_value.rb
        3 kB
        Chad Johnson

        Activity

        Hide
        Chad Johnson added a comment -

        dbd-jdbc has been moved to Kenai at :

        http://kenai.com/projects/dbd-jdbc

        This bug has also been moved to :

        http://kenai.com/jira/browse/DBD_JDBC-2

        Charles you may close this bug out.

        Show
        Chad Johnson added a comment - dbd-jdbc has been moved to Kenai at : http://kenai.com/projects/dbd-jdbc This bug has also been moved to : http://kenai.com/jira/browse/DBD_JDBC-2 Charles you may close this bug out.
        Hide
        Chad Johnson added a comment -

        Project has moved homes and has a new issue tracker :

        http://kenai.com/projects/dbd-jdbc

        Show
        Chad Johnson added a comment - Project has moved homes and has a new issue tracker : http://kenai.com/projects/dbd-jdbc

          People

          • Assignee:
            Unassigned
            Reporter:
            Chad Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: