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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: