Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-8523

Incorrect parameter binding for Calendar and TemporalType

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.3.0.Beta5
    • Component/s: None
    • Labels:
    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Last commented by a user?:
      true

      Description

      StoredProcedureQuery spq = ...;
      spq.registerStoredProcedureParameter( 1, Calendar.class, ParameterMode.IN );
      spq.setParameter( 1, aGregorianCalendar, TemporalType.DATE ); 
      

      Started a discussion on the dev mailing list about whether it makes sense to leverage Statement#setDate(int,Date,Calendar) e.g. in such cases to leverage TZ. That may not be what the user intended is my concern.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              There are no comments yet on this issue.

                People

                • Assignee:
                  steve Steve Ebersole
                  Reporter:
                  steve Steve Ebersole
                  Participants:
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 4h 14m
                    4h 14m

                      Development