rows = db(
        (db.recipes.ID_CUISINE==db.cuisines.id)
    ).select(db.recipes.ALL)
db._lastsql >>>
('SELECT recipes.ID_CUISINE, recipes.DESCRIPTION, recipes.ID_AUTHOR, 
recipes.ID_CATEGORY, recipes.EXPIRATION_DATE, recipes.IMAGE FROM recipes, 
cuisines WHERE (recipes.ID_CUISINE = cuisines.id);', 0.04505515098571777)
rows = db(
        (db.recipes.ID_CUISINE==db.cuisines.id)
    ).select(db.recipes.ALL,db.cuisines.NAME)
db._lastsql >>> Error: 'utf-8' codec can't decode byte 0xf0
rows = db(db.recipes).select(join=db.cuisines.on(db.recipes.ID_CUISINE == db
.cuisines.id))
db._lastsql >>> Error: 'utf-8' codec can't decode byte 0xf0
my tables:
db.define_table(
    'recipes',
    Field('ID_CUISINE','integer'),
    Field('DESCRIPTION'),
    Field('ID_AUTHOR','integer'),
    Field('ID_CATEGORY','integer'),
    Field('EXPIRATION_DATE'),
    Field('IMAGE'),
    primarykey=['ID_CUISINE','ID_AUTHOR','ID_CATEGORY'],
    migrate=False
)

db.define_table(
    'cuisines',
    Field('NAME','string'),
    migrate=False
)

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/d9c4ad66-a03a-47ec-b616-baa030f03a49%40googlegroups.com.

Reply via email to