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

        Peter Eisenberg created issue -
        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
        Guilherme Blanco made changes -
        Field Original Value New Value
        Fix Version/s 1.2.4 [ 10063 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DC-1046, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

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

            Dates

            • Created:
              Updated: