alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

db query for non-existing entity throws error instead of returning (FIXED) #10

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From robi...@gmail.com on June 17, 2008 15:53:38

What steps will reproduce the problem? 1. db(db.users.id == 2000).select() 2. 3. What is the expected output?

None, or an empty rowset

What do you see instead?

gql.py", line 416, in _select_except if t=='id': new_item.append(int(item.key().id())) AttributeError: 'NoneType' object has no attribute 'key' What version of the product are you using? On what operating system? r262 Please provide any additional information below.

Original issue: http://code.google.com/p/web2py/issues/detail?id=10

alfonsodg commented 10 years ago

From robi...@gmail.com on June 17, 2008 14:38:04

Forgot to note, this happens when using GAE

alfonsodg commented 10 years ago

From massimod...@gmail.com on June 17, 2008 18:59:26

fixed in trunk 263 - thanks for reporting this.

Summary: db query for non-existing entity throws error instead of returning (FIXED)
Status: Fixed