Hi.
I updated today to version 1.71.0, and there was a problem with the
_extra row.
When there are multiple fields that go into to _extra row, only one of
them is present. For example when getting separate sums for two fields
only the last one can be found in _extra.
I debuged a little and found that in sql.py line 2886:
if not '_extra' in row:
new_row['_extra'] = Row()
new_row['_extra'][colnames[j]] = value
continue
row contains the data returned by the database, while the script puts
the data in new_row variable which is a dict, containing the _extra
row.
It should be:
if not '_extra' in new_row:
new_row['_extra'] = Row()
new_row['_extra'][colnames[j]] = value
continue
When I changed it, it worked as before.
regards
mmlado
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---