On Jun 12, 2:32 pm, DenesL <denes1...@yahoo.ca> wrote:
> On Jun 12, 4:58 am, Alexey Nezhdanov <snak...@gmail.com> wrote:
> > You can reference the table itself like this.
> > Try:
> >  db.define_table('table_example',
> >      SQLField('some_int_field','integer'),
> >      SQLField('parent_id_field', 'integer'))
> > and then treat parent_id_field just as it's name suggests
> Isn't defining a reference as an integer a no-no?
> I remember being hand slapped once for suggesting it.

It means you lose referential integrity, so isn't a good idea
really...

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to