On Jun 12, 2:32 pm, DenesL <[email protected]> wrote:
> On Jun 12, 4:58 am, Alexey Nezhdanov <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to