After updating to web2py 2.18.3 one of users could't be registrated in 
database. Before that he had error *'ascii' codec can't decode byte 0xd0 in 
position 0: ordinal not in range(128) *too, but I apply fix by Leonel 
Câmara and changed:
if not isinstance(obj, bytes):
to
if not hasattr(obj, 'decode') or not callable(obj.decode):
Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.

Traceback (most recent call last):
  File ".\gluon\restricted.py", line 219, in restricted
    exec(ccode, environment)
  File "C:\inetpub\wwwroot\applications\stud\controllers/default.py", line 
1792, in <module>
  File ".\gluon\globals.py", line 421, in <lambda>
    self._caller = lambda f: f()
  File ".\gluon\tools.py", line 3868, in f
    return action(*a, **b)
  File "C:\inetpub\wwwroot\applications\stud\controllers/default.py", line 254, 
in index
    
str(form.vars.f),str(form.vars.i),str(form.vars.pser),str(form.vars.pnum),str(form.vars.num),auth.user_id)#auth.user.last_name,auth.user.first_name
  File "C:\inetpub\wwwroot\gluon\packages\dal\pydal\base.py", line 772, in 
executesql
    adapter.execute(query)
  File "C:\inetpub\wwwroot\gluon\packages\dal\pydal\adapters\__init__.py", line 
67, in wrap
    return f(*args, **kwargs)
  File "C:\inetpub\wwwroot\gluon\packages\dal\pydal\adapters\base.py", line 
413, in execute
    rv = self.cursor.execute(command, *args[1:], **kwargs)
  File "C:\Python27\lib\site-packages\fdb\fbcore.py", line 3592, in execute
    self._ps._execute(parameters)
  File "C:\Python27\lib\site-packages\fdb\fbcore.py", line 3304, in _execute
    "Error while executing SQL statement:")
DatabaseError: ('Error while executing SQL statement:\n- SQLCODE: -802\n- 
arithmetic exception, numeric overflow, or string truncation\n- unknown ISC 
error 335544914', -802, 335544321)

Error snapshot [image: help] 
<http://192.168.20.184/admin/ticket/stud/89.169.0.222.2019-03-11.14-07-58.647723bf-7b25-48f0-a827-a3ac8a588a1b#>

<class 'fdb.fbcore.DatabaseError'>(('Error while executing SQL 
statement:\n- SQLCODE: -802\n- arithmetic exception, numeric overflow, or 
string truncation\n- unknown ISC error 335544914', -802, 335544321))

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to