Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6462447

select/update query sharing parameter throws ArrayIndexOutOfBoundException

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b95
    • Introduced In Version:
      6
    • Resolved In Build:
      b98
    • CPU:
      generic
    • OS:
      generic

      Description

      Code :

      interface I_Query005 extends BaseQuery {
          @Select(sql="SELECT * from query005 where firstName=?1 and lastName=?1")
          DataSet<Player> getPlayer(String fName);
      }


      This select statement will not work and throw ArrayIndexOutOfBoundException as both parameters need to be initialized by same argument.

      This is applicable for update statement as well.

        Attachments

          Activity

            People

            Assignee:
            kssaxena Kshitiz Saxena (Inactive)
            Reporter:
            kssaxena Kshitiz Saxena (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: