Traceback (most recent call last):
File "/var/web2py/gluon/restricted.py", line 217, in restricted
exec ccode in environment
File "/var/web2py/applications/site/controllers/default.py", line 89, in
<module>
File "/var/web2py/gluon/globals.py", line 385, in <lambda>
self._caller = lambda f: f()
File "/var/web2py/applications/site/controllers/default.py", line 38, in
statistic
rows = SQLTABLE(db(db.info).select(db.info.number, db.info.number.count(),
groupby=db.info.number))
File "/var/web2py/gluon/sqlhtml.py", line 2929, in __init__
columns =
['.'.join(sqlrows.db._adapter.REGEX_TABLE_DOT_FIELD.match(c).groups()) for c in
sqlrows.colnames]
AttributeError: 'NoneType' object has no attribute 'groups'
Variablesc'COUNT(info.number)'sqlrows.db<DAL
uri="postgres:******@localhost/site">).groupsundefinedsqlrows.colnames['info.number',
'COUNT(info.number)']sqlrows.db._adapter.REGEX_TABLE_DOT_FIELD<_sre.SRE_Pattern
object>'.'.joinundefinedsqlrows.db._adapter<gluon.dal.PostgreSQLAdapter
object>sqlrows.db._adapter.REGEX_TABLE_DOT_FIELD.match<built-in method
match of _sre.SRE_Pattern object>sqlrows<Rows (62)>columnsNone
El jueves, 13 de marzo de 2014 12:53:48 UTC-3, Massimo Di Pierro escribió:
>
> Do you have a longer traceback?
>
>
> On Thursday, 13 March 2014 10:49:01 UTC-5, Fcosqui wrote:
>>
>> Hi !
>>
>> I have 2.9.4-stable version on my Server1 and 2.8.2-stable version on my
>> Server2.
>>
>> the same Application and query on Server1 and Server2:
>>
>> rows = SQLTABLE(db(db.info).select(db.info.name,
>> db.registros_chile.number.count(), orderby=db.info.number,
>> groupby=db.info.number))
>>
>> Server2 : Correct answer
>>
>> Server1 : <type 'exceptions.AttributeError'> 'NoneType' object has no
>> attribute 'groups'
>>
>>
>> ¿¿??.
>>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.