Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X2qBj-0004dH-Sm for pgsql-odbc@arkaria.postgresql.org; Thu, 03 Jul 2014 23:13:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X2qBj-0002F0-7R for pgsql-odbc@arkaria.postgresql.org; Thu, 03 Jul 2014 23:13:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X2qBf-0002Em-VC for pgsql-odbc@postgresql.org; Thu, 03 Jul 2014 23:13:08 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X2qBW-0001Zv-Sr for pgsql-odbc@postgresql.org; Thu, 03 Jul 2014 23:13:06 +0000 Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 1C9EA21460 for ; Thu, 3 Jul 2014 19:12:56 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute3.internal (MEProxy); Thu, 03 Jul 2014 19:12:56 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h= message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; s=mesmtp; bh=tCjHVrE6uCafmKQKlFV5Z7+GMRE=; b=EcUHnbWCZZaymOcZ6gEAKwvUUQ8h p7UjagWLuwCaAJbrsfBfs6y/gRuXO9q0mdAz9UHowiYsIqfvMz6+XW1wvQwloiX8 kPYd4fXUFMJVC6P/hG6EoIxL6C1Rnf9ZlGDw6AcnDFbZk11/7DZ7Do+4nYf0zM6n Wn1+4wAIhYQqr2Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=smtpout; bh=tCjHVrE6uCafmKQKlFV5Z7 +GMRE=; b=kZS2CZWIBkEca6P7mALZa8QoAmJbB7cGlRedGBSVLED+anC4Z9h9ZT j3wkvj9vfwoy+pJwJwLEOEBk0k9I5TW+Q1nAsNaZJDWyiVermWfzr2ab9sKWUWUD OPcwklGl/Z5EqQcnITfax4ocTs2N7FZEnlqRuMQSdTXdQU9zZWkiU= X-Sasl-enc: MKgYUjUs6DHJmW4y7rDd1gj0B7GLvtxsg2FRv2I6uBU3 1404429175 Received: from killi.site (unknown [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id 98100C007AA; Thu, 3 Jul 2014 19:12:55 -0400 (EDT) Message-ID: <53B5E376.40504@aklaver.com> Date: Thu, 03 Jul 2014 16:12:54 -0700 From: Adrian Klaver User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: matevzm , pgsql-odbc@postgresql.org Subject: Re: Connction string lacks some options References: <1404396208681-5810410.post@n5.nabble.com> In-Reply-To: <1404396208681-5810410.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.6 (-) 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 On 07/03/2014 07:03 AM, matevzm wrote: > I am having trouble making DSN for psqlodbcw.so driver. > > When I try to test it with iodbctest I get error (I can connect openlink > drivers but I cannot use them because they do not support mxODBC): > > Driver Manager: 03.52.0709.0909 > > Enter ODBC connect string (? shows list): ? > > DSN | Driver > ------------------------------------------------------------------------------ > DSNana | psqlDriver > DSNopen | OpenLink PostgreSQL Lite Driver v6.0 > DSNopen2 | OpenLink PostgreSQL Lite Driver (Unicode) > v6.0 > > Enter ODBC connect string (? shows list): DSNana > 1: SQLDriverConnect = connction string lacks some options (202) > SQLSTATE=08001 A common template for Postgres seems to be: http://www.unixodbc.org/odbcinst.html [PostgreSQL] Description = Test to Postgres Driver = /usr/local/lib/libodbcpsql.so Trace = Yes TraceFile = sql.log Database = nick Servername = localhost UserName = Password = Port = 5432 Protocol = 6.4 ReadOnly = No RowVersioning = No ShowSystemTables = No ShowOidColumn = No FakeOidIndex = No ConnSettings = Given you are on Postgres 9.3 you could use Protocol 7.4. See if the above supplies the needed options. > Postgres server: Postgres app 9.3.4.2 (http://postgresapp.com/) > ODBC manager: iODBC Data Source Manager (OpenLink) > ODBC driver: http://www.postgresql.org/ftp/odbc/versions/src/ (latest) - > psqlodbc-09.03.0300.tar.gz > OSX version: 10.9.3 > UCS: UCS2 > Eclipse: Eclipse Standard/SDK - Kepler Service Release - Build id: > 20140224-0627 > Python: 2.7.6 - 64bit > mxBase version: egenix-mx-base-3.2.7-py2.7_ucs2-macosx-10.5-x86_64-prebuilt > mxODBC version: egenix-mxodbc-3.1.2.macosx-10.5-x86_64-py2.7_ucs2.prebuilt > > Thank you for your answers. > > Best regards, Matevz > > > > -- > View this message in context: http://postgresql.1045698.n5.nabble.com/Connction-string-lacks-some-options-tp5810410.html > Sent from the PostgreSQL - odbc mailing list archive at Nabble.com. > > -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc