how to dispaly data in grid

From: Quan Zongliang <quanzongliang(at)gmail(dot)com>
To: pgadmin-hackers(at)postgresql(dot)org(dot)
Subject: how to dispaly data in grid
Date: 2009-03-02 07:34:27
Message-ID: 20090302155848.73D9.4125B4E5@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

Hi, all

In import function, some wxGrid is used to display preview data.
I consider it is better that all of wxGrid in the pgAdmin
should use same data style.

Now, there is a option called "Show NULL values as <NULL>".
But it only affect query tool. The issue is:
If checked, the string "<NULL>" and NULL can't be distincted.
If not, empty string and NULL can't be distincted.

In data grid, this option is ignored.
NULL is displayed as blank, empty string as ''.
If the data is two single quotation marks, it is displayed as \'\'.
Other amount, no change with original data.(''' as ''', '''' as '''', and so on)

So, we should define some rules to deal this.

Regards.

-----------------------------------------------
Quan Zongliang
quanzongliang(at)gmail(dot)com
CIT Japan: http://www.cit.co.jp
CIT China: http://www.citbj.com.cn

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Guillaume Lelarge 2009-03-02 09:21:18 Re: Challenges with messages
Previous Message Harald Armin Massa 2009-03-01 19:52:44 Re: Challenges with messages