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

Re: where are the query output tuples stored

From: Qiqi YU <vonclemay(at)gmail(dot)com>
To: Dave Page <dpage(at)pgadmin(dot)org>
Cc: rod(at)iol(dot)ie, Pgadmin-Support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: where are the query output tuples stored
Date: 2011-03-14 14:39:44
Message-ID: AANLkTikHctqmXPP=ZPi40A883VJ5w3U62_YL-Cv7y3mG@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-support
Hi Dave,

Thanks for your fast reply. As I went through the code of function
ctlSQLResult::DisplayData(bool single), there seems to be no calling
of wxGrid Control to display data?  My understanding is that the
displayData function would set up the frame of the outputs (i.e. all
the column attributes name and row number). But where is the output
data being inserted into the output table?
Also the thing is I need to create to new tuples to the output panel
(appended to the existing output table). Which part of the codes
should I modify in order to achieve this?


Regards
Kevin

2011/3/14 Dave Page <dpage(at)pgadmin(dot)org>:
> On Sun, Mar 13, 2011 at 3:37 PM, Qiqi YU <vonclemay(at)gmail(dot)com> wrote:
>> Hi Dave,
>>
>>
>> Thanks for your reply! However, I still have a few doubts:
>> 1: In which stage is the output tuples displayed? Is that within the
>> OnQueryComplete function?
>
> void ctlSQLResult::DisplayData(bool single) is where things are setup
> for display.
>
>> 2: May I know where is this sqlResultTable::GetValue function called?
>
> It's called by the wxGrid control.
>
>> 3: Also what is the difference between ctlSQLResult and sqlResultTable?
>
> ctlSQLResult is an extended version of the wxGrid control, which
> displays the results. sqlResultTable is a class that presents the
> results of the query in a way that the wxGrid control can access.
> Essentially, it's an adaptor between the grid control and the PGResult
> structure from libpq.
>
> --
> Dave Page
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>
> EnterpriseDB UK: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>

In response to

Responses

pgadmin-support by date

Next:From: Dave PageDate: 2011-03-14 15:57:49
Subject: Re: where are the query output tuples stored
Previous:From: Dave PageDate: 2011-03-14 09:23:00
Subject: Re: where are the query output tuples stored

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