[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:
Dependency
is required for DDC-494 Add IBM DB2 Support Resolved

 Description   

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



 Comments   
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 Sun Apr 20 09:11:25 UTC 2014 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.