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

Re: small patch request(pgIndex.cpp)

From: "Hiroshi Saito" <z-saito(at)guitar(dot)ocn(dot)ne(dot)jp>
To: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>,<pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: small patch request(pgIndex.cpp)
Date: 2006-09-19 04:15:12
Message-ID: 01e701c6dba2$33aa6df0$a543040a@wiseknot.local (view raw or flat)
Thread:
Lists: pgadmin-hackers
Hi Dave.

I followed the intellisense of MS-VC simply. However, it may have 
desirable long at the reason columnCount is long.

--correction:-)
NumToStr((long)(i-1)) 
--
Thanks!

Regards,
Hiroshi Saito

> Hi Dave.
> 
> :\HOME\pgadmin3-1.6.0-beta1\src\schema\pgIndex.cpp(117) : 
> error C2668: 'NumToStr' xx(snip)japanesexxxxxxx

Hi Hiroshi,

I don't understand why you think we need this?

- wxT("LEFT OUTER JOIN pg_opclass o ON (o.oid = i.indclass[") +
NumToStr(i-1) + wxT("])\n") +
+ wxT("LEFT OUTER JOIN pg_opclass o ON (o.oid = i.indclass[") +
NumToStr((wxLongLong)(i-1)) + wxT("])\n") +

'i' is a long, and we have 

wxString NumToStr(long value)
{
    wxString result;
    result.Printf(wxT("%ld"), value);
    return result;
}

In base.cpp.

?

Regards, Dave



In response to

Responses

pgadmin-hackers by date

Next:From: Dave PageDate: 2006-09-19 07:41:22
Subject: Re: small patch request(pgIndex.cpp)
Previous:From: Guillaume LelargeDate: 2006-09-18 22:43:52
Subject: Re: Crash under Linux with compiled pgadmin 1.6

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