<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 00:35:41 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DC-331/DC-331.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DC-331] Wrong SQL output from Doctrine_Expression for pgsql with timestamp with time zone field</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-331</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;(1) pgsql connection&lt;br/&gt;
(2) timestamp with time zone column&lt;br/&gt;
(3) $doctrine_expression = new Doctrine_Expression(&apos;NOW()&apos;);&lt;br/&gt;
      echo $doctrine_expression-&amp;gt;getSQL();&lt;br/&gt;
 gives:&lt;br/&gt;
LOCALTIMESTAMP(0)&lt;/p&gt;

&lt;p&gt;What I&apos;d like to get access to using that Doctrine construct is the &lt;br/&gt;
functionality of &apos;CURRENT_TIMESTAMP&apos;, (has time zone,&lt;br/&gt;
stores time in TIMESTAMP WITH TIME ZONE columns in UTC time)&lt;/p&gt;

&lt;p&gt;Fortunately, all the databases that I want to use implement &lt;br/&gt;
&apos;CURRENT_TIMESTAMP&apos;, but not all PDO/Doctrine databases&lt;br/&gt;
support that construct, even though it&apos;s ANSI SQL standard, &lt;br/&gt;
(which ANSI I don&apos;t know.)&lt;/p&gt;</description>
                <environment>This is with Symfony 1.3 alpha (which is pretty good) Can&amp;#39;t tell you which Doctrine it comes with</environment>
            <key id="10568">DC-331</key>
            <summary>Wrong SQL output from Doctrine_Expression for pgsql with timestamp with time zone field</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="gearond">Dennis Gearon</reporter>
                        <labels>
                    </labels>
                <created>Sun, 6 Dec 2009 02:29:45 +0000</created>
                <updated>Tue, 5 Jan 2010 00:26:29 +0000</updated>
                                    <version>1.2.0-RC1</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="11316" author="slig" created="Tue, 5 Jan 2010 00:26:29 +0000"  >&lt;p&gt;I&apos;m also seeing this with Symfony 1.4.1 (w/Doctrine 1.2).  Affects timestampable tables (created_at, updated_at).&lt;/p&gt;

&lt;p&gt;also, NOW() AT TIME ZONE &apos;UTC&apos; translates to LOCALTIMESTAMP(0) AT TIME ZONE &apos;UTC&apos; (via buildSqlQuery).&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>