Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-297

PDO::PARAM_LOB (value=3) overlaps with PDO::FETCH_NUM (value=3) in OCI8Statement::$fetchModeMap

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: Drivers
    • Security Level: All
    • Labels:
      None
    • Environment:
      N/A

      Description

      Hi,

      In OCI8Statement, using PDO::FETCH_NUM does not work because the fetch style mapping is overwritten by PDO::PARAM_LOB since the two has the same value (3);

      protected static $fetchModeMap = array(
      PDO::FETCH_BOTH => OCI_BOTH,
      PDO::FETCH_ASSOC => OCI_ASSOC,
      PDO::FETCH_NUM => OCI_NUM,
      PDO::PARAM_LOB => OCI_B_BLOB,
      PDO::FETCH_COLUMN => OCI_NUM,
      );

      so PDO::FETCH_NUM is mapped to OCI_B_BLOB

        Activity

        Charles Gunawan created issue -
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Workflow jira [ 13820 ] jira-feedback2 [ 17616 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17616 ] jira-feedback3 [ 19967 ]
        Show
        Steve Müller added a comment - Fixed in https://github.com/doctrine/dbal/commit/642245644392f3b9c34c75af57d322a81317becb#diff-2a71cb2283aa305e363a1dd8254976dd
        Steve Müller made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.5 [ 10523 ]
        Resolution Fixed [ 1 ]

        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=DBAL-297, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Charles Gunawan
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: