Re: [BUGS] Degrade(character conversion problem) pga3? - Mailing list pgadmin-hackers

From Hiroshi Saito
Subject Re: [BUGS] Degrade(character conversion problem) pga3?
Date
Msg-id 037201c38e22$28fda690$1f324d80@w2k
Whole thread Raw
In response to Degrade(character conversion problem) pga3?  ("Hiroshi Saito" <saito@inetrt.skcapi.co.jp>)
Responses Re: [BUGS] Degrade(character conversion problem)
List pgadmin-hackers
Hi Andreas.

It was ascertained.
The timing of constructer of pgConn isn't suitable for it.
It tried to trace it in let's as below.
----------------------------------------------------
pgSet *pgConn::ExecuteSet(const wxString& sql)
{
    // Execute the query and get the status.
    PGresult *qryRes;
    wxLogSql(wxT("Set query (%s:%d): %s"), this->GetHost().c_str(), this->GetPort(), sql.c_str());
 if (&conv == &wxConvUTF8)
  wxLogSql(wxT("DEBUG: conv=>wxConvUTF8"));
 else
  if (&conv == &wxConvLibc)
   wxLogSql(wxT("DEBUG: conv=>wxConvLibc"));
  else
   wxLogSql(wxT("DEBUG: conv=>others"));

  qryRes = PQexec(conn, sql.mb_str(conv));
-------------------------------------------------------
All results are "DEBUG: conv=>wxConvLibc".
I think how it will be modified.....

any comment?

regards,
Hiroshi Saito

----- Original Message -----
From: "Hiroshi Saito" <saito@inetrt.skcapi.co.jp>


> Hi Andreas.
>
> Hmm..
> It is thought still to be bug on this side.
> Or, wxWindows.
> When the code is analyzed, it seems to be the below.


pgadmin-hackers by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Re: [BUGS] Degrade(character conversion problem) pga3?
Next
From: Andreas Pflug
Date:
Subject: Re: [BUGS] Degrade(character conversion problem)