Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-975

[GH-662] Allow current timestamp default to be specified for DateTimeTz type.

    Details

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

      Description

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

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

      Message:

      Currently there is no way to specify a current timestamp as a default when using the `DateTimeTz` type, as it will always be quoted by the system. For example, the generated schema would have:

      `DEFAULT 'NOW()'`

      Instead of the correct:

      `DEFAULT NOW()`

      This simple fix allows `DateTimeTz` to behave just as `DateTime` in this regard.

        Issue Links

          Activity

          Hide
          Doctrine Bot added a comment -

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

          Show
          Doctrine Bot added a comment - A related Github Pull-Request [GH-662] was closed: https://github.com/doctrine/dbal/pull/662
          Hide
          Doctrine Bot added a comment -

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

          Show
          Doctrine Bot added a comment - A related Github Pull-Request [GH-662] was assigned: https://github.com/doctrine/dbal/pull/662

            People

            • Assignee:
              Marco Pivetta
              Reporter:
              Doctrine Bot
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: