After changing form 6.5.1a to 6.6.0b I got this exception whenever I posted a new record where I didn't assign values to those fields which are defined NOT NULL and have default values.
I found a solution that works for me.
Change
in ZAbstractRODataSet, procedure InternalFieldDefs
required := IsNullable(I) = ntNoNulls;
to
required := (IsNullable(I) = ntNoNulls)
and not
( ( (GetDefaultValue(I)='') and
(GetColumnType(I) in [stString, stUnicodeString])
)
or (GetDefaultValue(I)<>'') );
[patch_done] MySQL Exception "field must have a value&q
Moderators: gto, cipto_kh, EgonHugeist, mdaems
- mdaems
- Zeos Project Manager
- Posts: 2766
- Joined: 20.09.2005, 15:28
- Location: Brussels, Belgium
- Contact:
Jottel,
Please check current version. (SVN snapshot at http://zeosdownloads/downloads/snapshots/). Normally this should work better now after fixing bug #90
Mark
Please check current version. (SVN snapshot at http://zeosdownloads/downloads/snapshots/). Normally this should work better now after fixing bug #90
Mark