[DDC-526] Abstract Type needs method "getEmptyValue" Created: 17/Apr/10  Updated: 14/Jun/10  Resolved: 18/Apr/10

Status: Resolved
Project: Doctrine 2 - ORM
Component/s: ORM
Affects Version/s: 2.0-ALPHA4
Fix Version/s: 2.0-BETA1
Security Level: All

Type: Bug Priority: Major
Reporter: Benjamin Eberlei Assignee: Benjamin Eberlei
Resolution: Invalid Votes: 0
Labels: None

Issue Links:
is required for DDC-494 Add IBM DB2 Support Resolved


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".

Comment by Roman S. Borschel [ 17/Apr/10 ]

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.

Comment by Roman S. Borschel [ 17/Apr/10 ]

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.

Comment by Benjamin Eberlei [ 17/Apr/10 ]

Yes that works i found out.

Comment by Roman S. Borschel [ 18/Apr/10 ]

Can we close this then?

Comment by Benjamin Eberlei [ 18/Apr/10 ]

Closed, not needed

Generated at Sat Sep 05 01:51:58 EDT 2015 using JIRA 6.4.10#64025-sha1:5b8b74079161cd76a20ab66dda52747ee6701bd6.