Doctrine 1
  1. Doctrine 1
  2. DC-1046

Connection MSSQL replaceBoundParamsWithInlineValuesInQuery

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Revision: 104

      Description

      Hello,

      We found a bug in Doctrine1 MSSQL Connection.
      When you would like to use the following functionality: find(One)By(p1,p2)
      if you use the old functionality (Symfony 1.4 support it) like this: findBy("idAnddata", array("id" => ..., "date" => ..)), you got an MSSQL error, because the values wasn't changed.

      Please find the patch for it, I hope it helps to you as well.

      Kind regards
      Peter

        Activity

        Hide
        Peter Eisenberg added a comment -

        Small changes:
        Unfortunately the notice wasn't set in my test environment, and I didn't realized this small error:

        please use the following instead of the original:
        $replacement = 'is_null(\$value) ? \'NULL\' : \$this->quote(\$params[\'\\1\'])';

        another case you got the following error: Use of undefined constant xxx - assumed xxx.

        Kind regards,
        Peter

        Show
        Peter Eisenberg added a comment - Small changes: Unfortunately the notice wasn't set in my test environment, and I didn't realized this small error: please use the following instead of the original: $replacement = 'is_null(\$value) ? \'NULL\' : \$this->quote(\$params [\'\\1\'] )'; another case you got the following error: Use of undefined constant xxx - assumed xxx. Kind regards, Peter

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Peter Eisenberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: