web2py Shell Version 1.62 rc1 (2009-05-07 00:50:20)
In[1]:
db().select(db.call.ALL)
Out[1]:
<gluon.sql.SQLRows object at 0xaa36a0c>
In[2]:
print db().select(db.call.ALL)
Out[2]:
call.id,call.caller_id,call.dest_num,call.answered_time,call.hangup_time,call.hangup_cause,call.billsec,call.owner_id
After ~2 minutes idle time:
In[3]:
print db().select(db.call.ALL)
Out[3]:
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/web2py/web2py-devel/gluon/sql.py", line 1964, in select
r = response(query)
File "/web2py/web2py-devel/gluon/sql.py", line 1959, in response
self._db._execute(query)
File "/web2py/web2py-devel/gluon/sql.py", line 654, in <lambda>
self._execute = lambda *a, **b: self._cursor.execute(*a,**b)
ProgrammingError: Cannot operate on a closed database.
--
Kuba
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---