Re: [HACKERS] PQescapeIdentifier

Поиск
Список
Период
Сортировка
Искать
От
Christopher Kings-Lynne
Тема
Re: [HACKERS] PQescapeIdentifier
Дата
Msg-id
44A09B4C.3050605@familyhealth.com.au
Ответ на
Список
Дерево обсуждения
Re: [HACKERS] PQescapeIdentifier Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] PQescapeIdentifier Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] PQescapeIdentifier Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Re: [HACKERS] PQescapeIdentifier Tom Lane <tgl@sss.pgh.pa.us>
>> I thought of that but I assume we were not accepting user-supplied
>> identifiers for this --- that this was only for application use.  Am I
>> wrong?

Well, yes the plan was to accept user-supplied identifiers...

> If you insist on a practical example, I can certainly imagine someone
> thinking it'd be cool to allow searches on a user-selected column, and
> implementing that by passing the user-given column name straight into
> the query with only PQescapeIdentifier for safety.

Yes, phpPgAdmin sure would.  I imagine this would be a nightmare to 
address properly, so perhaps we should remove the function :(

В списке pgsql-patches по дате отправления
От: ITAGAKI Takahiro
Дата:
От: Christopher Kings-Lynne
Дата:
FAQ