Re: Automatically opening pdf files stored in a bytea field - Mailing list pgsql-php

From Volkan YAZICI
Subject Re: Automatically opening pdf files stored in a bytea field
Date
Msg-id 7104a7370510121008h198d5013vdd29c30394984855@mail.gmail.com
Whole thread Raw
In response to Re: Automatically opening pdf files stored in a bytea field  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: Automatically opening pdf files stored in a bytea field
List pgsql-php
Hi,

On 10/12/05, Christopher Kings-Lynne <chriskl@familyhealth.com.au> wrote:
> I'm not 100% sure you need the pg_unescape_bytea - I thought that was
> already done automatically?

Yep, I agree. Furthermore, (un)escape routines will consume so much
system CPU. If you can, try to use parameters (pg_query_params() and
pg_send_params()) in any bytea/lo storage. This makes you free from
escaping without any potential SQL Injection threats.

Regards.

pgsql-php by date:

Previous
From: Leodan Vega Izaguirre
Date:
Subject: Re: Set Privileges on All Tables - Wrong List - Sorry
Next
From: "Milen A. Radev"
Date:
Subject: Converting RFC 2822 "timestamp" to timestampz