Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ucdgf-0001pd-Bo for pgsql-odbc@arkaria.postgresql.org; Wed, 15 May 2013 15:32:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Ucdge-0001np-Hv for pgsql-odbc@arkaria.postgresql.org; Wed, 15 May 2013 15:32:16 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UcdgN-0001XA-D3 for pgsql-odbc@postgresql.org; Wed, 15 May 2013 15:31:59 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by makus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UcdgG-0006Ue-3q for pgsql-odbc@postgresql.org; Wed, 15 May 2013 15:31:58 +0000 Received: (qmail 22467 invoked by uid 512); 15 May 2013 15:31:49 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 15 May 2013 15:31:49 -0000 Received: from unknown (HELO ?192.168.1.3?) (110.5.25.94) by sd.tpf.co.jp with SMTP; 15 May 2013 15:31:49 -0000 Message-ID: <5193AA61.2080708@tpf.co.jp> Date: Thu, 16 May 2013 00:31:45 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Jan-Peter Seifert CC: pgsql-odbc@postgresql.org Subject: Re: Problem with special characters in password when using SQLDriverConnect References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.2 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi, (2013/05/13 23:04), Jan-Peter Seifert wrote: > > Hello, > > if you use SQLDriverConnect instead of SQLConnect the connection fails on special characters like ';', '(', ')' and '+'(?) within the password. > > According to the documentation ( http://msdn.microsoft.com/en-us/library/windows/desktop/ms715433%28v=vs.85%29.aspx ) []{}(),;?*=!@ are special characters. > > In order to pass the connection string to the driver intact you have to bracket the whole connection string ( or just the values ? - it looks like my English is not good enough for this article ). > > There already had been a patch in 09.00.0100 but this problem obviously persists in psqlODBC 09.01.0100 Unicode. Maybe this has been patched in the ANSI version only? I don't understand why ANSI drivers work. Could you please try the dll on testing for 9.1.0300 at http://www.ne.jp/asahi/inocchichichi/entrance/psqlodbc/index.html ? regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc