yes... something about if "foo" is reserved, the form "foo_" is guarenteed to never be a reserved word.... (something like that). I made to argument that in web2py we should use whatever words we want, with no worries, and KNOW, announce, have the DAL uniformly convert ALL database field names to the form "foo_"
Massimo made some argument against that ... I don't remember what it was or it's strenghth... .but maybe this is enough context to start from if you want to re-visit this. Yarko On Mon, Nov 10, 2008 at 9:22 AM, billf <[EMAIL PROTECTED]> wrote: > > I don't think you can. I'd be happy to be proved wrong. > > There was a thread a while ago about how it would be really nice to be > able to map a database column name to an 'internal' name. This was > primarily to help with legacy tables that had unfriendly column > names. In the context of Firebird/T2, I guess you could redefine the > T2.person table with a column name other than password and map it to > 'password' internally. > > Having said that we don't have an "map" facility yet :-) > > On Nov 10, 2:47 pm, Jose <[EMAIL PROTECTED]> wrote: > > Hello. > > > > How can I change the name of some fields when I use T2? > > There are some of them that correspond to words reserved of Firebird, > > for example password. > > > > Regards > > Jose > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

