[web2py] Re: Possible bug in trunk dal.py

2011-07-10 Thread cjwebb
I have encountered this too. Are there any suggestions/fixes to solve this issue? On Jun 2, 9:54 am, Oskari oskari.pe...@gmail.com wrote: Yes I did. Dal seems to try to put 0 in database but MySQL rejects the value, since there is no row with index 0. I think the proper way to indicate None in

[web2py] Re: Possible bug in trunk dal.py

2011-06-02 Thread Oskari
Yes I did. Dal seems to try to put 0 in database but MySQL rejects the value, since there is no row with index 0. I think the proper way to indicate None in MySQL would be NULL. On Jun 1, 7:14 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Did you try: db.define_table(tags,    

[web2py] Re: Possible bug in trunk dal.py

2011-06-01 Thread Massimo Di Pierro
Did you try: db.define_table(tags, Field(name,string), Field(parent, reference tags,default=None), format=%(name)s) On Jun 1, 9:30 am, Oskari oskari.pe...@gmail.com wrote: Hi, I'm reporting a possible bug with trunk version of dal.py. I'm having the traceback: Traceback (most