Ticket #1256: 1256.patch

File 1256.patch, 401 bytes (added by vighneshbirodkar, 17 months ago)

Looking for @ from the right

  • Orange/data/sql.py

    diff --git a/Orange/data/sql.py b/Orange/data/sql.py
    a b  
    2323        else: 
    2424            host, rest = rest.split('/', 1) 
    2525    if host and host.find('@') != -1: 
    26         user, host = host.split('@', 1) 
     26        user, host = host.rsplit('@', 1) 
    2727        if user.find(':') != -1: 
    2828            user, password = user.split(':', 1) 
    2929        else: