pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Lionel Elie Mamane <lionel@mamane.lu>
Cc: Terrence Enger <tenger@iseries-guru.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: segfault in SQLSpecialColumns when table name is null string
Date: Mon, 16 Jul 2012 06:04:23 +0900
Message-ID: <50033057.2080408@tpf.co.jp> (raw)
In-Reply-To: <20120715164042.GA17624@capsaicin.mamane.lu>
References: <1341922972.25065.19.camel@cougar-natty>
	<20120710142707.GB26793@capsaicin.mamane.lu>
	<5001E9A3.6070707@tpf.co.jp>
	<20120715050211.GA4207@capsaicin.mamane.lu>
	<5002E6D0.6090303@tpf.co.jp>
	<20120715164042.GA17624@capsaicin.mamane.lu>

(2012/07/16 1:40), Lionel Elie Mamane wrote:
> On Mon, Jul 16, 2012 at 12:50:40AM +0900, Hiroshi Inoue wrote:
>> (2012/07/15 14:02), Lionel Elie Mamane wrote:
>>> On Sun, Jul 15, 2012 at 06:50:27AM +0900, Hiroshi Inoue wrote:
>>>> (2012/07/10 23:27), Lionel Elie Mamane wrote:
>
>>>>> Also, the ultimate reason for this "strange thing" is that
>
>>>>>    SQLColAttribute( (SQLHANDLE) 0x1ec7850,
>>>>>                     (SQLUSMALLINT) 1,
>>>>>                     (SQLUSMALLINT) 15,
>>>>>                     (SQLPOINTER) 0x1eb2640,
>>>>>                     128,
>>>>>                     (SQLSMALLINT *) 0x7fffffff97de,
>>>>>                     NULL);
>
>>>>> where 15 == SQL_DESC_TABLE_NAME == SQL_COLUMN_TABLE_NAME
>>>>> returns (writes at 0x1eb2640) an empty string for this query:
>
>>>>>     SELECT "Num" "Numero", "data" FROM "foo"."Table1"
>
>>>> What is your environment e.g. the version of your PG server
>>>> or the version of your psqlodbc?
>
>>> On Debian GNU/Linux amd64, Debian packages.
>
>>> Client:
>>>    unixodbc     2.2.14p2-5
>>>    psqlodbc     09.01.0100
>>>    libpq5       9.1.3
>>> Server:
>>>    postgresql   9.0.6
>
>> SQLColattribute returns non null string here under Windows environment.
>> Well how are you setting odbc.ini?
>
> [PgSQL tst]
> Description             = PostgreSQL test
> Driver          = PostgreSQL Unicode
> Trace           = No
> TraceFile               =
> Database                = lobugs
> Servername              = pgsql.localdomain
> Username                =
> Password                =
> Port            = 5432
> Protocol                = 6.4
> ReadOnly                = No
> RowVersioning           = No
> ShowSystemTables                = No
> ShowOidColumn           = No
> FakeOidIndex            = No
> ConnSettings            =

Please set the following.

Protocol                = 7.4

Setting

UseServerSidePrepare	= 1

is also recommended.

regards,
Hiroshi Inoue




view thread (9+ messages)  latest in thread

Message-ID: <50033057.2080408@tpf.co.jp>
Permalink:  ../50033057.2080408@tpf.co.jp/
Also on:    postgresql.org/message-id/50033057.2080408@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, lionel@mamane.lu, tenger@iseries-guru.com
  Subject: Re: segfault in SQLSpecialColumns when table name is null string
  In-Reply-To: <50033057.2080408@tpf.co.jp>
  References: <1341922972.25065.19.camel@cougar-natty> <20120710142707.GB26793@capsaicin.mamane.lu> <5001E9A3.6070707@tpf.co.jp> <20120715050211.GA4207@capsaicin.mamane.lu> <5002E6D0.6090303@tpf.co.jp> <20120715164042.GA17624@capsaicin.mamane.lu> <50033057.2080408@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox