Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-852

[GH-557] fix date format on oracle

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of Tobion:

      Url: https://github.com/doctrine/dbal/pull/557

      Message:

      The expected format for DATE columns is `01-MAR-14`. See http://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#CNCPT413

      It also works with `01-Mar-2014` as this PR uses.

      We found the problem when trying something like

      ```
      $this->oracleCon->executeQuery(
      'SELECT * FROM table WHERE datefield > ?',
      array(new \DateTime()),
      array(Type::DATE)
      );
      ```

      which was raising an oracle error that the date could not be parsed.

      The

        Activity

        Doctrine Bot created issue -
        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-557] was closed:
        https://github.com/doctrine/dbal/pull/557

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-557] was closed: https://github.com/doctrine/dbal/pull/557
        Steve Müller made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Benjamin Eberlei [ beberlei ] Steve Müller [ deeky666 ]
        Resolution Invalid [ 6 ]

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

          People

          • Assignee:
            Steve Müller
            Reporter:
            Doctrine Bot
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: