Hi,

The bit applicable to adodbapi doesn't consider the port at all (at the 
moment...)

class MSSQLDialect_adodbapi(MSSQLDialect):
    ...
    def make_connect_string(self, keys):
        connectors = ["Provider=SQLOLEDB"]
        connectors.append ("Data Source=%s" % keys.get("host"))
        connectors.append ("Initial Catalog=%s" % keys.get("database"))
        user = keys.get("user")
        if user:
            connectors.append("User Id=%s" % user)
            connectors.append("Password=%s" % keys.get("password", ""))
        else:
            connectors.append("Integrated Security=SSPI")
        return [[";".join (connectors)], {}]

Paul


El Gringo wrote:

>
>
>
>
>Ok I saw fixes in the current trunk:
>
>class MSSQLDialect_pymssql(MSSQLDialect):
>    def make_connect_string(self, keys):
>        if keys.get('port'):
>            # pymssql expects port as host:port, not a separate arg
>            keys['host'] = ''.join([keys.get('host', ''), ':',
>str(keys['port'])])
>            del keys['port']
>        return [[], keys]
>
>
>I guess the right separator is not ':' but ','. Grrrr just a way from
>MS to disagree from standarts.
>
>
>>
>
>  
>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to