<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 19:49:50 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+DBAL+AND+resolution+%3D+Unresolved+AND+assignee+%3D+romanb+ORDER+BY+priority+DESC&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+DBAL+AND+resolution+%3D+Unresolved+AND+assignee+%3D+romanb+ORDER+BY+priority+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="1" total="1"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-7] Add support for char fields in the ORM layer</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-7</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It&apos;s not possible to use char fields in the ORM layer.&lt;/p&gt;

&lt;p&gt;It should be possible to use something like:&lt;/p&gt;

&lt;p&gt;@Column(type=&quot;char&quot;) or ...&lt;br/&gt;
@Column(type=&quot;string&quot;, fixed=true) or ...&lt;br/&gt;
@Column(type=&quot;fixedstring&quot;)&lt;/p&gt;</description>
                <environment></environment>
            <key id="10767">DBAL-7</key>
            <summary>Add support for char fields in the ORM layer</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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>
                                <assignee username="romanb">Roman S. Borschel</assignee>
                                <reporter username="darkangel">Glen Ainscow</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Jan 2010 10:45:06 +0000</created>
                <updated>Sat, 17 Sep 2011 21:57:10 +0000</updated>
                                    <version>2.1</version>
                <version>2.1.1</version>
                <version>2.1.2</version>
                                                <component>Drivers</component>
                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="11454" author="romanb" created="Sun, 24 Jan 2010 11:04:25 +0000"  >&lt;p&gt;I dont think this is worth including in the main distribution. A char does not save much compared to a varchar (1 Byte?) and you already have 2 options to make a char:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;create your own custom type (i.e. FixedString)&lt;/li&gt;
	&lt;li&gt;Use @Column(..., columnDefinition=&quot;CHAR(2)&quot;)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;IMHO, just use a string type with the length you want: @Column(type=&quot;string&quot;, length=2). That becomes a varchar with length 2.&lt;/p&gt;</comment>
                    <comment id="11455" author="darkangel" created="Sun, 24 Jan 2010 12:59:24 +0000"  >&lt;p&gt;Ya, it is only 1 extra byte. I&apos;m not sure what to do, I like things as optimized as possible, but I guess I could just use columnDefinition if necessary.&lt;/p&gt;</comment>
                    <comment id="11456" author="darkangel" created="Sun, 24 Jan 2010 13:06:21 +0000"  >&lt;p&gt;Actually, I don&apos;t really see any reason &lt;b&gt;not&lt;/b&gt; to include the char type.&lt;/p&gt;</comment>
                    <comment id="11457" author="romanb" created="Sun, 24 Jan 2010 13:40:46 +0000"  >&lt;p&gt;How about code bloat? &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    <comment id="11460" author="darkangel" created="Sun, 24 Jan 2010 16:07:46 +0000"  >&lt;p&gt;How many LoC?&lt;/p&gt;</comment>
                    <comment id="11463" author="guilhermeblanco" created="Mon, 25 Jan 2010 13:43:31 +0000"  >&lt;p&gt;@darkangel Around 40. And lots of conditionals, which decreases efficiency of algorithm.&lt;/p&gt;

&lt;p&gt;I vote for FixedString DBAL DataType.&lt;/p&gt;</comment>
                    <comment id="11466" author="romanb" created="Mon, 25 Jan 2010 13:54:45 +0000"  >&lt;p&gt;We will not put every special data type someone comes up with in the core library. If we go this route, at the end we have 100+ data types (100+ classes plus a bloated type map) in the core library.&lt;/p&gt;

&lt;p&gt;There are at least 2 decent options of making a char already if you care about byte counting (see above).&lt;/p&gt;

&lt;p&gt;&quot;Why not?&quot; is not the question to ask for when it comes to new features. If it were, we would include a whole lot of stuff that is useless for 99% of the users. There must be strong arguments for &quot;Why?&quot; and there are none.&lt;/p&gt;

&lt;p&gt;If we get 50+ votes on this issue we can talk again.&lt;/p&gt;
</comment>
                    <comment id="11470" author="darkangel" created="Mon, 25 Jan 2010 14:27:18 +0000"  >&lt;p&gt;Of course not. I didn&apos;t know that char was a special data type (especially since it&apos;s supported in DC1.2).&lt;/p&gt;

&lt;p&gt;I will use @columnDefinition.&lt;/p&gt;

&lt;p&gt;You may close this issue.&lt;/p&gt;</comment>
                    <comment id="11474" author="romanb" created="Mon, 25 Jan 2010 14:37:30 +0000"  >&lt;p&gt;No need to become defensive. There is still the chance that demand for this particular type gets very high and that can change things.&lt;/p&gt;

&lt;p&gt;Thats why this stays open. Otherwise the next guy would probably just create a duplicate ticket (not sure whether non-owners can reopen other tickets).&lt;/p&gt;</comment>
                    <comment id="11476" author="beberlei" created="Mon, 25 Jan 2010 15:21:24 +0000"  >&lt;p&gt;@Glen&lt;/p&gt;

&lt;p&gt;The problem with Doctrine 1 and having lots of different data-types is that of maintainability. You have to ensure that all the types work on all supported platforms with each and every version. The more datatypes we support by default the more complex will it be for the Doctrine 2 Core to ensure compability and maintainability in this regard.&lt;/p&gt;

&lt;p&gt;For each new platform that we will support all datatypes have to be supported for example, something that might even become impossible for some databases.&lt;/p&gt;

&lt;p&gt;Adding a datatype from the user perspective is rather simple though, it has to be tested once and is only about 20-40 LOC. I bet you 100 bucks that soon there will be code-snippets out there on all the different database specific types as a doctrine 2 implemention.&lt;/p&gt;</comment>
                    <comment id="11479" author="darkangel" created="Mon, 25 Jan 2010 16:37:57 +0000"  >&lt;p&gt;@Roman&lt;br/&gt;
Not being defensive, I have accepted/respected your decision. &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;@Benamin&lt;br/&gt;
I did think about cross-database compatibility. As far as I know, char is supported by the vast majority (or at least easily simulated). But I understand.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                    <comment id="16490" author="strygin" created="Sat, 17 Sep 2011 21:56:28 +0000"  >&lt;p&gt;Sorry for party rocking but i think that &lt;em&gt;&apos;fixed&apos;&lt;/em&gt; annotation should be enabled in ORM column definitions. &lt;br/&gt;
In this case @Column(type=&quot;string&quot;, length=4, fixed=true) would result in &quot;CHAR(4)&quot; for MySQL, Oracle and Postgres, Sqlite, and DB2, &quot;NCHAR(4)&quot; for MQSQL. etc... It is much more elegant than that &lt;em&gt;columnDefinition&lt;/em&gt;.&lt;br/&gt;
It is already supported by DBAL as well as &lt;em&gt;&apos;default&apos;&lt;/em&gt; heartlessly removed (&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-100&quot; title=&quot;Default values are not escaped&quot;&gt;&lt;del&gt;DDC-100&lt;/del&gt;&lt;/a&gt;) from annotation driver due to bizzare reluctance to deal with proper escaping of values.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>