Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-28266

Upgrade*.java should not call long count = rs.getLong(1) but instead should call int count = rs.getInt(1)

    Details

    • Branch Version/s:
      6.1.x, 6.0.x
    • Backported to Branch:
      Committed

      Description

      long count = rs.getLong(1);

      At SQL Server it fails with:
      java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long

      int count = rs.getInt(1);

      We should update SourceFormatter to warn about this in the future in *.java.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.saechang Michael Saechang
              Reporter:
              brian.chan Brian Chan
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 1 week, 6 days ago

                  Packages

                  Version Package
                  6.0.X EE
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  --Sprint 11/12
                  6.2.0 CE M2