| From: | Dave Page <dpage(at)pgadmin(dot)org> |
|---|---|
| To: | Quan Zongliang <quanzongliang(at)gmail(dot)com> |
| Cc: | pgadmin-hackers(at)postgresql(dot)org |
| Subject: | Re: I want to modify "pgConn::ExecuteSet" |
| Date: | 2009-02-05 11:30:25 |
| Message-ID: | 937d27e10902050330x3c73976cmca23db0e75da9f42@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgadmin-hackers |
On Thu, Feb 5, 2009 at 11:08 AM, Quan Zongliang <quanzongliang(at)gmail(dot)com> wrote:
> Hi, all
>
> Now, in pgConn class, the definition is:
> pgSet *pgConn::ExecuteSet(const wxString& sql)
>
> I want to modify it to new definition:
> pgSet *pgConn::ExecuteSet(const wxString& sql, bool quiet = false)
>
> When quiet is true, don't pop error message.
>
> Because in import function, it allows user-defined expression.
> When generate preview, send the expression to DB to validate it.
> If not quiet, a lot of error message will be poped.
Do you need to use ExecuteSet for this? ExecuteVoid already has a
reportError flag which can be used to stop it logging error messages.
--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Quan Zongliang | 2009-02-05 11:34:14 | Re: I want to modify "pgConn::ExecuteSet" |
| Previous Message | svn | 2009-02-05 11:25:48 | SVN Commit by dpage: r7578 - trunk/pgadmin3/pgadmin/schema |