Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-3909

Query.execute method should use varargs instead of Object[]

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0
    • querying
    • None

    Description

      Currently in order to execute a query with bind parameters, the user has to manually construct and array:

      queryService.newQuery("select * from /region where name=$1").execute(new Object[] {"joe"});
      

      Java supports varags that allow the user to call this same method without having to construct an array themselves:

      queryService.newQuery("select * from /region where name=$1").execute("joe");
      

      We just need to change the definition of execute to use Object... instead of Object[].

      Attachments

        Issue Links

          Activity

            People

              upthewaterspout Dan Smith
              upthewaterspout Dan Smith
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: