yet in trunk!
On Friday, November 16, 2012 7:24:44 PM UTC+1, Cédric Mayer wrote:
>
> I confirm the bug using 2.2.1 (I am not using trunk...)
>
> It is because in gluon/globals THREAD_LOCAL.instances do not exist and the
> replacement THREAD_LOCAL.db_instances has a different architecture.
>
> To correct (I hope it's in the trunk already):
>
> dbstats = [TABLE(*[TR(PRE(row[0]), '%.2fms' % (row[1] * 1000))
> for row in l[0]._timings])
> for i,l in THREAD_LOCAL.db_instances.iteritems()]
> dbtables = dict([(regex_nopasswd.sub('******', l[0]._uri),
> {'defined':
> sorted(list(set(l[0].tables) -
> set(l[0]._LAZY_TABLES.keys())))
> or
> '[no defined tables]',
> 'lazy': sorted(l[0]._LAZY_TABLES.keys()) or
> '[no lazy tables]'})
> for i,l in THREAD_LOCAL.db_instances.
> iteritems()])
>
>
>
> Le mercredi 14 novembre 2012 15:40:40 UTC+1, Massimo Di Pierro a écrit :
>>
>> Any chance you can try trunk? I remember we made some changes about it
>> recently because of a bug.
>>
>> On Tuesday, 13 November 2012 11:01:51 UTC-6, Maciej Kwiecień wrote:
>>>
>>> Dear All,
>>>
>>> I'm using 2.2.1 version on Apache 2.2.19 with ssl, on Windows 7 (64
>>> bit). The database engine is MySQL.
>>>
>>> No matter how my models look like I never get anything in "db stats" and
>>> "db tables" info in response.toolbar().
>>> When I explicitly output db._timings in the view, at least 3 queries are
>>> shown.
>>>
>>> What can be the reason?
>>>
>>> Thank you!
>>> Maciek
>>>
>>
--