Uploaded image for project: 'NHibernate'
  1. NHibernate
  2. NH-2132

Sql Server Dialect: Use of 'For XML' in formula attribute results in incorrect SQL.

    Details

      Description

      Example:

      <property name="ChildQuestion" formula="(SELECT T.something from table T XML PATH(''))"/>

      Gets parsed as:

      (SELECT T.something FROM table T FOR entity0_.XML PATH('')) as formula0_2_
      as opposed to
      (SELECT T.something FROM table T FOR XML PATH('')) as formula0_2_

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pedroalvarado Pedro Alvarado
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Who's Looking?