rows = db(
(db.recipes.ID_CUISINE==db.cuisines.id) &
(db.recipes.ID_AUTHOR==db.authors.id) &
(db.recipes.ID_CATEGORY==db.categories.id)
).select(db.cuisines.NAME,db.authors.NAME,db.categories.NAME,db.recipes.ALL)127.0.0.1.2019-07-18.22-56-57.1cf3eb52-85aa-418d-b7f9-51ac287014a9
| web2py™ | Version 2.18.5-stable+timestamp.2019.04.08.04.22.03 |
|---|---|
| Python | Python 3.7.3: C:\Program Files (x86)\Python37-32\python.exe (prefix: C:\Program Files (x86)\Python37-32) |
1. | Traceback (most recent call last): |

UnicodeDecodeError('utf-8' codec can't decode byte 0xf0 in position 0: invalid continuation byte)
File D:\Загрузки\web2py_src\web2py\gluon\restricted.py in restricted at line 219 код аргументы переменные
File D:\Загрузки\web2py_src\web2py\applications\Recipes\controllers\default.py in <module> at line 89 код аргументы переменные
File D:\Загрузки\web2py_src\web2py\gluon\globals.py in <lambda> at line 421 код аргументы переменные
File D:\Загрузки\web2py_src\web2py\applications\Recipes\controllers\default.py in index at line 19 код аргументы переменные
File D:\Загрузки\web2py_src\web2py\gluon\packages\dal\pydal\objects.py in select at line 2395 код аргументы переменные
File D:\Загрузки\web2py_src\web2py\gluon\packages\dal\pydal\adapters\base.py in select at line 763 код аргументы переменные
File D:\Загрузки\web2py_src\web2py\gluon\packages\dal\pydal\adapters\base.py in _select_aux at line 719 код аргументы переменные
File D:\Загрузки\web2py_src\web2py\gluon\packages\dal\pydal\adapters\base.py in _select_aux_execute at line 714 код аргументы переменные
File C:\Program Files (x86)\Python37-32\lib\site-packages\fdb\fbcore.py in fetchall at line 3730 код аргументы переменные
File C:\Program Files (x86)\Python37-32\lib\site-packages\fdb\fbcore.py in <listcomp> at line 3730 код аргументы переменные
File C:\Program Files (x86)\Python37-32\lib\site-packages\fdb\fbcore.py in next at line 3488 код аргументы переменные
File C:\Program Files (x86)\Python37-32\lib\site-packages\fdb\fbcore.py in fetchone at line 3690 код аргументы переменные
File C:\Program Files (x86)\Python37-32\lib\site-packages\fdb\fbcore.py in _fetchone at line 3359 код аргументы переменные
File C:\Program Files (x86)\Python37-32\lib\site-packages\fdb\fbcore.py in __xsqlda2tuple at line 2677 код аргументы переменные
File C:\Program Files (x86)\Python37-32\lib\site-packages\fdb\fbcore.py in b2u at line 479 код аргументы переменные
(st=b'\xf0\xf3\xf1\xf1\xea\xe0\xff', charset='utf_8')
474. | return isinstance(obj, weakref.ProxyType) and not dir(obj) |
| st | b'\xf0\xf3\xf1\xf1\xea\xe0\xff' |
|---|---|
| st.decode | <built-in method decode of bytes object> |
| charset | 'utf_8' |
rows = db(
(db.recipes.ID_CUISINE==db.cuisines.id)
).select(db.recipes.ALL,db.cuisines.NAME)rows = db(db.recipes).select(join=db.cuisines.on(db.recipes.ID_CUISINE == db.cuisines.id))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
)