Re: Automatically opening pdf files stored in a bytea field

From: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Adam Witney <awitney(at)sgul(dot)ac(dot)uk>, pgsql-php <pgsql-php(at)postgresql(dot)org>
Subject: Re: Automatically opening pdf files stored in a bytea field
Date: 2005-10-12 17:08:29
Message-ID: 7104a7370510121008h198d5013vdd29c30394984855@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

Hi,

On 10/12/05, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)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.

In response to

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Milen A. Radev 2005-10-12 19:14:32 Converting RFC 2822 "timestamp" to timestampz
Previous Message Leodan Vega Izaguirre 2005-10-12 13:11:29 Re: Set Privileges on All Tables - Wrong List - Sorry