I would expect that both constraints are accepted (empty string is not
Null).

Is the behavior different from older versions?

On Wed, Sep 5, 2012 at 7:39 PM, mjm <mjm...@webtothemax.com> wrote:

> I have defined a simple table:
>
> db.define_table('hoortoestel',
> # algemeen
>  Field('merk', type='string', required=True, ),
> Field('type', type='string', required=True, ),
> ...
>
> If I then try to enter a new record in appadmin and do not enter anything
> for the fields, the record is still accepted and entered into the (SQLite)
> database. I would have expected the DAL to refuse the values.
> If I change the constraints from required=True to notnull=True, the empty
> values are not accepted.
>
> Bug or oversight by me?
>
>  --
>
>
>
>

-- 



Reply via email to