Please check the latest trunk. Looks like the only change is that check on 
reconnect attempts. For now I have removed the check, eventually it should 
be moved somewhere else.

Can you confirm this fixes the problem?

On Thursday, 27 June 2013 06:00:08 UTC-5, Jonathan New wrote:
>
> Hi Massimo,
>
> Removing lines 598 to 600 from dal.py allows connection to cloud sql 
> normally. Migration also works as normal.
>
> Would there be any potential issues we might face with these lines removed?
>
> Regards,
> Jonathan
>
>
> On Thursday, June 27, 2013 6:02:18 PM UTC+8, Jonathan New wrote:
>>
>> Hi Massimo,
>>
>> My colleague discover that in the DAL of version 2.5.1, line 598 to 600, 
>> the reconnect function checks for self.driver. However, in the case of 
>> GAE, it uses GoogleSQLAdapter which does not set the self.driver since it 
>> uses rdbms.connect as the connector causing the reconnect function to fail 
>> due to an empty self.driver.
>>
>> Hope you can advise us how we can help to patch GoogleSQLAdapter to make 
>> it work.
>>
>> Regards,
>> Jonathan
>>
>>
>> On Thursday, June 27, 2013 4:15:21 PM UTC+8, Massimo Di Pierro wrote:
>>>
>>> What you upgrading from? I cannot think of any change that would cause 
>>> this.
>>>
>>> On Thursday, 27 June 2013 02:28:38 UTC-5, Jonathan New wrote:
>>>>
>>>> After upgrading Web2py to 2.5.1, it can't connects to Google's CloudSQL.
>>>>
>>>> The message from the log is
>>>>   dal.py:599] Skipping connection since there's no driver.
>>>>  dal.py:4926] 1
>>>>
>>>> Reverting gluon back to 2.4.6 (the version we did our development on) 
>>>> works.
>>>>
>>>> Is there any changes on the connection string?
>>>>
>>>> db = DAL("google:sql://app-id:instance/myapp", 
>>>> check_reserved=('mysql',), migrate_enabled=True)
>>>>
>>>>
>>>>

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to