On Feb 17, 2008, at 8:34 PM, Adrian Klaver wrote:

>>      OK, I've done some tests, and it doesn't look good. It seems that if
>> I set those values to None, when the record is saved it creates SQL
>> like:
>>
>> insert into mytable (foo, bar, baz) values (None, None, None)
>>
>> ...and if those fields do not accept null values, it will return an
>> error. The only way to get the database defaults is to not include
>> those fields in the insert statement, but that will take a much more
>> extensive re-working of the code.
>>
>> -- Ed Leafe
>>
>
> I should have thought of that. Well I can set defaults in the bizobj.


        Before you do that, try the version of dCursorMixin I just committed.  
It should respect database-supplied default values if you set the  
bizobj's DefaultValues to None.

-- Ed Leafe





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to