OpenJPA
  1. OpenJPA
  2. OPENJPA-2000

Wrong PostgreSQL data type for REAL - "float8", must be "float4"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: jdbc, sql
    • Labels:
      None
    • Environment:
      PostgreSQL

      Description

      In PostgresDictionary type names for SQL REAL and DOUBLE types are specified as:
      realTypeName = "FLOAT8";
      doubleTypeName = "DOUBLE PRECISION";
      From PostgreSQL manual:
      double precision: float8, double precision floating-point number (8 bytes)
      real: float4, single precision floating-point number (4 bytes)

      realTypeName must be "FLOAT4".

      1. OPENJPA-2000.patch
        0.5 kB
        Jacob Nowosatka

        Activity

        Stanislav Mironov created issue -
        Hide
        Jacob Nowosatka added a comment - - edited

        Attached patch changes realTypeName to FLOAT4

        Show
        Jacob Nowosatka added a comment - - edited Attached patch changes realTypeName to FLOAT4
        Jacob Nowosatka made changes -
        Field Original Value New Value
        Attachment OPENJPA-2000.patch [ 12487313 ]
        Hide
        Michael Dick added a comment -

        Thanks for the patch.

        Show
        Michael Dick added a comment - Thanks for the patch.
        Michael Dick made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Jacob Nowosatka [ jtnowosatka ]
        Fix Version/s 2.2.0 [ 12315910 ]
        Resolution Fixed [ 1 ]
        Hide
        Albert Lee added a comment -

        Close issue in preparation for 2.2.0 release.

        Show
        Albert Lee added a comment - Close issue in preparation for 2.2.0 release.
        Albert Lee made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jacob Nowosatka
            Reporter:
            Stanislav Mironov
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 5m
              5m
              Remaining:
              Remaining Estimate - 5m
              5m
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development