Re: Segmentation Fault

From: Christoph Haller <ch(at)rodos(dot)fzk(dot)de>
To: pgsql-interfaces(at)postgresql(dot)org
Cc: frankie(at)ucr(dot)com(dot)hk
Subject: Re: Segmentation Fault
Date: 2003-04-04 07:44:51
Message-ID: 3E8D37F3.70006@rodos.fzk.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> >
> > The doc says:
> > If you want to include strings that have been received from a source
> > that is not trustworthy (for example, because a random user entered
> > them), you cannot directly include them in SQL queries for security
> > reasons. Instead, you have to quote special characters that are
> > otherwise interpreted by the SQL parser.
>
> hmm.., I did this on purpose. Because I want to grab SQL commands
> I previously stored in a table from one database, then reformat them
> and store them into another database.
> E.g. the reformatted string looks like:
> INSERT INTO tableOnAnotherDB(sqlCMD) values('delete from test where
> name=''\\\\''');
>
Ok, I see. I didn't think of that possibility. You are right.
Regards, Christoph

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ami Tabak 2003-04-05 06:19:41 Inquiry From Form [pgsql]
Previous Message =?ISO-2022-JP?B?GyRCMiZJTBsoQg==?= 2003-04-04 02:20:29 unsubscribe