DDC-438: ORM: ColumnTypes case sensitive? #545

Closed
opened 2026-01-22 12:42:07 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Mar 18, 2010).

Jira issue originally created by user shurakai:

Is it intended that column types are case sensitive? Using DateTime throws an exception for me, datetime however works.

Maybe one should add a strtolower in the DBAL\Types\Type class?

Originally created by @doctrinebot on GitHub (Mar 18, 2010). Jira issue originally created by user shurakai: Is it intended that column types are case sensitive? Using DateTime throws an exception for me, datetime however works. Maybe one should add a strtolower in the DBAL\Types\Type class?
admin added the Improvement label 2026-01-22 12:42:07 +01:00
admin closed this issue 2026-01-22 12:42:08 +01:00
Author
Owner

@doctrinebot commented on GitHub (Mar 18, 2010):

Comment created by romanb:

It is indeed intended. Being case-sensitive makes things a lot easier for us. Once you start trying to be case-insensitive in too many places the code gets sprinkled with strtolower/strtoupper (i.e. DQL functions) and then you will miss some places ... :) .(personally, I think its also better if dAtETIme, daTetime and DATETIME are not the same thing so that you cant even start to use different casing for the same type, which is confusing.).

@doctrinebot commented on GitHub (Mar 18, 2010): Comment created by romanb: It is indeed intended. Being case-sensitive makes things a lot easier for us. Once you start trying to be case-insensitive in too many places the code gets sprinkled with strtolower/strtoupper (i.e. DQL functions) and then you will miss some places ... :) .(personally, I think its also better if dAtETIme, daTetime and DATETIME are not the same thing so that you cant even start to use different casing for the same type, which is confusing.).
Author
Owner

@doctrinebot commented on GitHub (Mar 18, 2010):

Issue was closed with resolution "Won't Fix"

@doctrinebot commented on GitHub (Mar 18, 2010): Issue was closed with resolution "Won't Fix"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#545