DDC-526: Abstract Type needs method "getEmptyValue" #655

Closed
opened 2026-01-22 12:45:45 +01:00 by admin · 7 comments
Owner

Originally created by @doctrinebot on GitHub (Apr 17, 2010).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user @beberlei:

IBM DB2 is a very strict system, defining a column with "foo INT NOT NULL" requires you to set a DEFAULT value.

This information is best placed on the Type instances with a method "getEmptyValue".

Originally created by @doctrinebot on GitHub (Apr 17, 2010). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user @beberlei: IBM DB2 is a very strict system, defining a column with "foo INT NOT NULL" requires you to set a DEFAULT value. This information is best placed on the Type instances with a method "getEmptyValue".
admin added the Bug label 2026-01-22 12:45:45 +01:00
admin closed this issue 2026-01-22 12:45:46 +01:00
Author
Owner

@doctrinebot commented on GitHub (Apr 17, 2010):

@doctrinebot commented on GitHub (Apr 17, 2010): - is required for [DDC-494: Add IBM DB2 Support](http://www.doctrine-project.org/jira/browse/DDC-494)
Author
Owner

@doctrinebot commented on GitHub (Apr 17, 2010):

Comment created by romanb:

Does not sound good to me. It would be better to solve this in the DB2 platform/schemamanager, if possible. Introducing new methods on Type for such db-specific issues is not appealing.

@doctrinebot commented on GitHub (Apr 17, 2010): Comment created by romanb: Does not sound good to me. It would be better to solve this in the DB2 platform/schemamanager, if possible. Introducing new methods on Type for such db-specific issues is not appealing.
Author
Owner

@doctrinebot commented on GitHub (Apr 17, 2010):

Comment created by romanb:

-Or if all other drivers are fine with this as well and its easier to do, we could do that always for all platforms.-

Forget that, I misunderstood the problem a bit.

Nevertheless, if this can be solved on the DB2 platform/schemamanager level it would be better, i.e. internally picking an empty default value depending on the type.

@doctrinebot commented on GitHub (Apr 17, 2010): Comment created by romanb: -Or if all other drivers are fine with this as well and its easier to do, we could do that always for all platforms.- Forget that, I misunderstood the problem a bit. Nevertheless, if this can be solved on the DB2 platform/schemamanager level it would be better, i.e. internally picking an empty default value depending on the type.
Author
Owner

@doctrinebot commented on GitHub (Apr 17, 2010):

Comment created by @beberlei:

Yes that works i found out.

@doctrinebot commented on GitHub (Apr 17, 2010): Comment created by @beberlei: Yes that works i found out.
Author
Owner

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

Comment created by romanb:

Can we close this then?

@doctrinebot commented on GitHub (Apr 18, 2010): Comment created by romanb: Can we close this then?
Author
Owner

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

Comment created by @beberlei:

Closed, not needed

@doctrinebot commented on GitHub (Apr 18, 2010): Comment created by @beberlei: Closed, not needed
Author
Owner

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

Issue was closed with resolution "Invalid"

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

No dependencies set.

Reference: doctrine/archived-orm#655