Skip site navigation (1) Skip section navigation (2)

Re: Fix for SQLStatistics

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>, PostgreSQL odbc list <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Fix for SQLStatistics
Date: 2001-05-16 01:08:42
Message-ID: 200105160108.f4G18gH19913@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-odbcpgsql-patches
> [ Charset US-ASCII unsupported, converting... ]
> > Bruce Momjian wrote:
> > > 
> > > Attached is a small patch to SQLStatistics() to allow proper information
> > > about CLUSTER and HASH indexes, as proposed by the ODBC code.  Right now
> > > the CLUSTER information is not maintained, but the HASH is accurate.
> > > Also, I found that the tests for UNIQUE and CLUSTER were done using
> > > atoi().  I don't think that works because these queries return 't' or
> > > 'f', not 1 or 0.
> > > 
> > 
> > Psqlodbc driver automatically coverts t/f to 1/0.
> 
> How does it know when to do the conversion?  Is there something that
> flags is as a boolean?

I think I see how it is done.  Fixing patch now.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-odbc by date

Next:From: Hiroshi InoueDate: 2001-05-16 01:55:54
Subject: Re: StarOffice5.2+psqlODBC+PostgreSQL-7.1.1
Previous:From: Bruce MomjianDate: 2001-05-16 00:45:23
Subject: Re: Fix for SQLStatistics

pgsql-patches by date

Next:From: Jason TishlerDate: 2001-05-16 01:17:26
Subject: Re: Cygwin plpython patch
Previous:From: Bruce MomjianDate: 2001-05-16 00:45:23
Subject: Re: Fix for SQLStatistics

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group