<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 03:35:34 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/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+10040+AND+labels+%3D+postgresql&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+10040+AND+labels+%3D+postgresql</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="7" total="7"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-525] PostgreSQL - getDateTimeFormatString() missing</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-525</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Using PostgreSQL and column with &quot;timestamp without time zone&quot; returns datetime in format Y-m-d H:i:s.u but not always. If u is zero the PHP driver returns Y-m-d H:i:s format only. Specification of function getDateTimeFormatString is missing for this case too. It&apos;s required to resolve described different two formats and add getDateTimeFormatString with usec to postgres platform&lt;br/&gt;
It&apos;s similar as &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-397&quot; title=&quot;PostgreSQL - getDateTimeTzFormatString()&quot;&gt;&lt;del&gt;DBAL-397&lt;/del&gt;&lt;/a&gt; but for not time zone datetimes. It throws the same exception as in linked issue.&lt;/p&gt;</description>
                <environment>PostgreSQL Database</environment>
            <key id="14978">DBAL-525</key>
            <summary>PostgreSQL - getDateTimeFormatString() missing</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="honzap">Jan Pecek</reporter>
                        <labels>
                        <label>datetime</label>
                        <label>format</label>
                        <label>postgresql</label>
                    </labels>
                <created>Wed, 22 May 2013 09:16:56 +0000</created>
                <updated>Wed, 22 May 2013 09:16:56 +0000</updated>
                                    <version>2.3.4</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-477] Just doublequote all schema names and field names in PostgreSQL sql command generation, and the same for MySQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-477</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Generation of any SQL command to the database (From entities or migration versions) does not quote all the reserved keywords (For example a fieldname `right`.&lt;/p&gt;

&lt;p&gt;Simple fix that always works: double-quote dbname, schemaname and fieldname&lt;/p&gt;

&lt;p&gt;e.g   &quot;dbsecurity&quot;.&quot;userschema&quot;.&quot;users&quot; or &quot;tblusers&quot;&lt;/p&gt;

&lt;p&gt;MySQL : use the ` sign.&lt;/p&gt;

&lt;p&gt;e.g   `security`.`users` or `tblusers` (No support for schemas since I last checked some time ago)&lt;/p&gt;</description>
                <environment>Any PostgreSQL environment</environment>
            <key id="14740">DBAL-477</key>
            <summary>Just doublequote all schema names and field names in PostgreSQL sql command generation, and the same for MySQL</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>mysql</label>
                        <label>postgresql</label>
                    </labels>
                <created>Thu, 28 Mar 2013 22:11:56 +0000</created>
                <updated>Thu, 28 Mar 2013 22:11:56 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-474] SchemaManager / Connection on PostgreSQL platform does not respect filterExpression for sequences</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-474</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Dear Symfony team,&lt;/p&gt;

&lt;p&gt;the filterExpression on AbstractSchemaManager seems not to work for sequences.&lt;/p&gt;

&lt;p&gt;This only happens under postgres. &lt;/p&gt;

&lt;p&gt;It seems the way the sequences are handled are the culprit: It tries to get min_value etc of sequences without matching sequence names to the filter expression in advance. &lt;/p&gt;

&lt;p&gt;If for example access to the sequences is denied, (Different schema without permissions for the current entity manager), any higher-level ORM operations like generating migration versions fail.&lt;/p&gt;

&lt;p&gt;--------------------- UPDATE&lt;/p&gt;

&lt;p&gt;the context is when using migrations. Positive regexp expressions do not limit the migration to a single schema. eg ^schemaname.$&lt;br/&gt;
Instead, all sequences on the current database are returned.&lt;br/&gt;
When trying to limit a migration to a single schema consecutively this doesn&apos;t work.&lt;br/&gt;
We are using a per-schema connection, so this results in a lot of hassle for us.&lt;/p&gt;</description>
                <environment>Windows &amp;amp; Linux</environment>
            <key id="14734">DBAL-474</key>
            <summary>SchemaManager / Connection on PostgreSQL platform does not respect filterExpression for sequences</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>postgresql</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 27 Mar 2013 20:39:57 +0000</created>
                <updated>Wed, 24 Apr 2013 20:05:59 +0000</updated>
                                    <version>2.2.2</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20000" author="beberlei" created="Sun, 14 Apr 2013 10:16:56 +0000"  >&lt;p&gt;Can you paste an exception trace? I see that filtering is applied to sequences, but your description seems to indicate this happens due to an SQL query much earlier?&lt;/p&gt;</comment>
                    <comment id="20097" author="josdewitte" created="Wed, 24 Apr 2013 10:43:00 +0000"  >&lt;p&gt;Dear Benjamin,&lt;/p&gt;

&lt;p&gt;the context is when using migrations. Positive regexp expressions do not limit the migration to a single schema. eg ^schemaname.$&lt;br/&gt;
Instead, all sequences on the current database are returned. &lt;br/&gt;
When trying to limit a migration to a single schema consecutively this doesn&apos;t work.&lt;br/&gt;
We are using a per-schema connection, so this results in a lot of hassle for us.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-420] Schema Drop SQL incorrect on PostgreSQL with entities with GeneratedValue(strategy=&quot;IDENTITY&quot;)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-420</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This problem is probably related to #&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-54&quot; title=&quot;Incorrect sequence dropping in PostgreSQL&quot;&gt;&lt;del&gt;DBAL-54&lt;/del&gt;&lt;/a&gt;. However that was closed by the raiser as he changed his Entity model and it went away.&lt;/p&gt;

&lt;p&gt;When schema drop is run the following error occurs:&lt;br/&gt;
Doctrine\DBAL\DBALException: An exception occurred while executing &apos;DROP SEQUENCE radacct_radacctid_seq&apos;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;2BP01&amp;#93;&lt;/span&gt;: Dependent objects still exist: 7 ERROR:  cannot drop sequence radacct_radacctid_seq because other objects depend on it&lt;br/&gt;
DETAIL:  default for table radacct column radacctid depends on sequence radacct_radacctid_seq&lt;br/&gt;
HINT:  Use DROP ... CASCADE to drop the dependent objects too.&lt;/p&gt;


&lt;p&gt;The source of this problem is the difference between strategy=&quot;IDENTITY&quot; and strategy=&quot;SEQUENCE&quot;&lt;/p&gt;

&lt;p&gt;With SEQUENCE doctrine creates the table schema with field type BIGINT and no specified. It then creates a seperate sequence and as far as I can tell takes care of getting and inserting the next id number itself.&lt;/p&gt;

&lt;p&gt;With IDENTITY doctrine creates the table schema with field type BIGSERIAL and no specified default. Now postgres automatically creates a sequence and creates the column with type BIGINT and sets the DEFAULT to the pgpsql statement required to get the nextval from the sequence.&lt;/p&gt;

&lt;p&gt;At this point the two differently configured tables will work successfully and identically, except SEQUENCE tables will only get a correct new ID when run through the doctrine code while IDENTITY tables will get the correct new ID whenever an insert is done to the table.&lt;/p&gt;

&lt;p&gt;Because in the case of an IDENTITY field postgresql creates the field with a default value refering to the sequence the sequence can not be deleted before the table reference is removed.&lt;/p&gt;

&lt;p&gt;For my case I need the IDENTITY fields to work as we have a RADIUS server that needs to insert into one table which is managed and mapped to an entity in Doctrine.&lt;/p&gt;

&lt;p&gt;Swapping the order of DROP TABLE and DROP SEQUENCE commands in Doctrine/DBAL/Schema/Visitor/DropSchemaSqlCollector.php in getQueries() line 159. Does not work as a quick fix. The following error occurs as the sequence is quite correctly be dropped along with the table.&lt;/p&gt;

&lt;p&gt;Doctrine\DBAL\DBALException: An exception occurred while executing &apos;DROP SEQUENCE radacct_radacctid_seq&apos;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42P01&amp;#93;&lt;/span&gt;: Undefined table: 7 ERROR:  sequence &quot;radacct_radacctid_seq&quot; does not exist&lt;/p&gt;
</description>
                <environment>Symfony 2.1, PHP5.4, PostgreSQL 9.1 on Ubuntu 12.04</environment>
            <key id="14403">DBAL-420</key>
            <summary>Schema Drop SQL incorrect on PostgreSQL with entities with GeneratedValue(strategy=&quot;IDENTITY&quot;)</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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="adamashley">Adam Ashley</reporter>
                        <labels>
                        <label>postgresql</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 23 Jan 2013 09:22:22 +0000</created>
                <updated>Sun, 14 Apr 2013 12:37:30 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 12:37:30 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="19395" author="adamashley" created="Thu, 24 Jan 2013 00:00:41 +0000"  >&lt;p&gt;This issue also appears to affect Doctrine_Migrations. Generated migrations try to drop and recreate automatically generated sequences associated with SERIAL fields making a mess of the database.&lt;/p&gt;</comment>
                    <comment id="19882" author="beberlei" created="Fri, 22 Mar 2013 10:05:35 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-289&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/289&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/289&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19985" author="powerkiki" created="Fri, 12 Apr 2013 06:20:15 +0000"  >&lt;p&gt;@Adam Ashley, could you test whether &lt;a href=&quot;https://github.com/doctrine/dbal/pull/289&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/289&lt;/a&gt; solve your issue ?&lt;/p&gt;</comment>
                    <comment id="20008" author="doctrinebot" created="Sun, 14 Apr 2013 12:36:08 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-289&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/289&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/289&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-406] PostgreSqlSchemaManager::tablesExist() misses schema-qualified table names if they exist in the first schema on the search path</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-406</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Please see &lt;a href=&quot;https://github.com/doctrine/migrations/issues/99&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/migrations/issues/99&lt;/a&gt; for additional background.&lt;/p&gt;

&lt;p&gt;To reproduce:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;
CREATE SCHEMA test_schema;
CREATE TABLE test_schema.test_table (test_column TEXT);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then in Doctrine:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;
$connection-&amp;gt;executeUpdate(&apos;SET search_path=test_schema;&apos;);
$result = $connection-&amp;gt;getSchemaManager()-&amp;gt;tablesExist(array(&apos;test_schema.test_table&apos;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;tt&gt;$result&lt;/tt&gt; is false when it should be true.&lt;/p&gt;

&lt;p&gt;The error occurs because &lt;tt&gt;PostgreSqlSchemaManager&lt;/tt&gt; returns the bare table name from &lt;tt&gt;getPortableTablesList()&lt;/tt&gt; if the schema is the first one in the search path.&lt;/p&gt;

&lt;p&gt;The full explanation is...&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;AbstractSchemaManager::tablesExist()&lt;/tt&gt; calls &lt;tt&gt;$this-&amp;gt;getPortableTablesList()&lt;/tt&gt; before checking if the tables exist.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;PostgreSqlSchemaManager&lt;/tt&gt; overrides this in &lt;tt&gt;_getPortableTableDefinition()&lt;/tt&gt;  by comparing the schema for the table with the search path for the connection. If the table schema is the first one in the search path, then it returns the bare table name, if it isn&apos;t then it returns the schema-qualified table name (i.e. schema.table).&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;tablesExist()&lt;/tt&gt; does an array_intersect to check that all the tables in the search array exist in the database.&lt;/p&gt;

&lt;p&gt;If one of the tables in the search array was schema-qualified but also in the first schema on the search path, then you end up checking:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;array_intersect(array(&apos;test_schema.test_table&apos;), array(&apos;test_table&apos;))&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;which fails.&lt;/p&gt;

&lt;p&gt;One way to fix it would be to override &lt;tt&gt;tablesExist()&lt;/tt&gt; in &lt;tt&gt;PostgreSqlSchemaManager&lt;/tt&gt; so that it passes the search array through &lt;tt&gt;getPortableTableDefinition()&lt;/tt&gt; before doing the array_intersect:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;
    /**
     * Return &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; all the given tables exist.
     *
     * @param array $tableNames
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; bool
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function tablesExist($tableNames)
    {
        foreach ($tableNames as $key =&amp;gt; $tableName) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (strpos($tableName, &apos;.&apos;) !== &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;) {
                $tableName = explode(&apos;.&apos;, $tableName, 2);
                $tableNames[$key] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_getPortableTableDefinition(array(&apos;schema_name&apos;=&amp;gt;$tableName[0], &apos;table_name&apos;=&amp;gt;$tableName[1]));
            }
        }
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::tablesExist($tableNames);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m happy to provide a PR on GitHub if you want.&lt;/p&gt;</description>
                <environment>Postgresql 9.1</environment>
            <key id="14352">DBAL-406</key>
            <summary>PostgreSqlSchemaManager::tablesExist() misses schema-qualified table names if they exist in the first schema on the search path</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rhunwicks">Roger Hunwicks</reporter>
                        <labels>
                        <label>postgresql</label>
                    </labels>
                <created>Mon, 7 Jan 2013 08:33:41 +0000</created>
                <updated>Mon, 7 Jan 2013 08:33:41 +0000</updated>
                                    <version>2.3.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-397] PostgreSQL - getDateTimeTzFormatString()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-397</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In: &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The function:&lt;/p&gt;

&lt;p&gt;    getDateTimeTzFormatString()&lt;/p&gt;

&lt;p&gt;only returns one datetime format:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;

    /**
     * {@inheritDoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getDateTimeTzFormatString()
    {
        &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &apos;Y-m-d H:i:sO&apos;; // original format
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &apos;Y-m-d H:i:s.uO&apos;; &lt;span class=&quot;code-comment&quot;&gt;// format also needed
&lt;/span&gt;    }


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here is the error I get using the original format:&lt;/p&gt;

&lt;p&gt;    Could not convert database value &quot;2012-12-07 16:01:52.580789-05&quot; to Doctrine Type datetimetz. Expected format: Y-m-d H:i:s.O&lt;/p&gt;

&lt;p&gt;If I use this format: &apos;Y-m-d H:i:s.uO&apos; it works.&lt;/p&gt;




</description>
                <environment>PostgreSQL Database</environment>
            <key id="14308">DBAL-397</key>
            <summary>PostgreSQL - getDateTimeTzFormatString()</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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="ppafford">Phill Pafford</reporter>
                        <labels>
                        <label>datetime</label>
                        <label>dql</label>
                        <label>format</label>
                        <label>postgresql</label>
                    </labels>
                <created>Wed, 12 Dec 2012 14:15:20 +0000</created>
                <updated>Mon, 17 Dec 2012 15:21:20 +0000</updated>
                    <resolved>Sun, 16 Dec 2012 11:36:02 +0000</resolved>
                            <version>2.3.1</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19126" author="ppafford" created="Wed, 12 Dec 2012 14:16:38 +0000"  >&lt;p&gt;adding html tags for code to display correctly &lt;/p&gt;</comment>
                    <comment id="19139" author="beberlei" created="Sun, 16 Dec 2012 11:36:02 +0000"  >&lt;p&gt;DateTimeTz is created as &apos;TIMESTAMP(0) WITH TIME ZONE&apos; on DBAL. If you have &apos;TIMESTAMP(6) WITH TIME ZONE&apos; instead, then you have to create your own datatye.&lt;/p&gt;</comment>
                    <comment id="19154" author="ppafford" created="Mon, 17 Dec 2012 15:19:53 +0000"  >&lt;p&gt;Why would this be a new data type? I understand how to fix the problem with creating my own data type to handle the formatting issue and would even suggest just overriding the data type with &lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;

        Type::overrideType(&apos;datetimetz&apos;, &apos;Doctrine\DBAL\Types\VarDateTimeType&apos;);
    Type::overrideType(&apos;datetime&apos;, &apos;Doctrine\DBAL\Types\VarDateTimeType&apos;);

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But it&apos;s not a new data type, it&apos;s a formatting issue.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-368] array and object types should use BLOB, not CLOB, to store serialized data</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-368</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using array or object types, PHP&apos;s serialize() is used. Since that can return NUL bytes, using a text type will fail at least on PostgreSQL (just search the web for issues of that kind&#8230;).&lt;/p&gt;

&lt;p&gt;So ArrayType and ObjectType should return a BLOB definition instead of a CLOB definition to be binary-safe.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14143">DBAL-368</key>
            <summary>array and object types should use BLOB, not CLOB, to store serialized data</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="k-fish">Karsten Dambekalns</reporter>
                        <labels>
                        <label>postgresql</label>
                    </labels>
                <created>Fri, 19 Oct 2012 08:47:01 +0000</created>
                <updated>Wed, 23 Jan 2013 21:54:22 +0000</updated>
                    <resolved>Wed, 23 Jan 2013 21:54:22 +0000</resolved>
                            <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18851" author="k-fish" created="Fri, 19 Oct 2012 11:55:53 +0000"  >&lt;p&gt;See &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-369&quot; title=&quot;[GH-219] Fix storage of binary data for array and object types&quot;&gt;DBAL-369&lt;/a&gt; for the suggested fix&lt;/p&gt;</comment>
                    <comment id="19374" author="ocramius" created="Wed, 23 Jan 2013 21:52:00 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=k-fish&quot; class=&quot;user-hover&quot; rel=&quot;k-fish&quot;&gt;Karsten Dambekalns&lt;/a&gt; &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-368&quot; title=&quot;array and object types should use BLOB, not CLOB, to store serialized data&quot;&gt;&lt;del&gt;DBAL-368&lt;/del&gt;&lt;/a&gt; is this issue. What&apos;s the one you were referring to?&lt;/p&gt;</comment>
                    <comment id="19375" author="ocramius" created="Wed, 23 Jan 2013 21:54:00 +0000"  >&lt;p&gt;Nvm, it was &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-369&quot; title=&quot;[GH-219] Fix storage of binary data for array and object types&quot;&gt;DBAL-369&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19376" author="ocramius" created="Wed, 23 Jan 2013 21:54:22 +0000"  >&lt;p&gt;Moved to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-369&quot; title=&quot;[GH-219] Fix storage of binary data for array and object types&quot;&gt;DBAL-369&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>