Uploaded image for project: 'iBatis for .NET'
  1. iBatis for .NET
  2. IBATISNET-3

Dyna SQL: Support for #value# parameter

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • DataMapper 1.6.2
    • None
    • None

    Description

      A common usecase for is return all records if a
      parameter is missing or null and a selected set if a
      parameter is missing. Conventional iBATIS queries
      support use of a #value# parameter that can be used
      with value objects, like int and string. But thie
      #value# parameter is not supported by Dynmaic SQL,
      which expects a rich object. The workaround is to
      create a "NameValue" object to pass, but being able to
      use value objects with the very common one-parameter
      query would be useful.

      Attachments

        Activity

          People

            gilles Gilles Bayon
            thusted Ted Husted
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: