Re: small patch request(pgIndex.cpp) - Mailing list pgadmin-hackers

From Hiroshi Saito
Subject Re: small patch request(pgIndex.cpp)
Date
Msg-id 01e701c6dba2$33aa6df0$a543040a@wiseknot.local
Whole thread Raw
In response to Re: small patch request(pgIndex.cpp)  ("Dave Page" <dpage@vale-housing.co.uk>)
Responses Re: small patch request(pgIndex.cpp)  ("Dave Page" <dpage@vale-housing.co.uk>)
List 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



pgadmin-hackers by date:

Previous
From: Guillaume Lelarge
Date:
Subject: Re: Crash under Linux with compiled pgadmin 1.6
Next
From: "Dave Page"
Date:
Subject: Re: small patch request(pgIndex.cpp)