Re: DBD::Pg problem

From: "Ausrack Webmaster" <webmaster(at)ausrack(dot)com(dot)au>
To: "'Alex Satrapa'" <alex(at)lintelsys(dot)com(dot)au>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: DBD::Pg problem
Date: 2003-12-03 09:43:22
Message-ID: 000301c3b981$e9dfbda0$0100a8c0@jason
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Tried that ...it is definetely the to_email field, not any others that
is causing
the problem.

Jason

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org] On Behalf Of Alex Satrapa
Sent: Wednesday, December 03, 2003 6:31 PM
To: Ausrack Webmaster
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] DBD::Pg problem

Ausrack Webmaster wrote:
> The thing is...I am not. I am inserting it into a varchar field.

Are there any single quotes in the message body? They will wreak havoc
with the rest of the query. And why are you putting single quotes around

'$parent'?

What happens if you move the '$body' to the end:

$sql="insert into it_contact (email, to_email,
subject,modify,parent,details) values(?,?,?,now(),$parent,'$body')";

Alex

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if
your
joining column's datatypes do not match

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Randolf Richardson 2003-12-03 10:20:23 Re: ISO 8601 'Time Intervals' of the 'format with time-unit deignators'
Previous Message Alvar Freude 2003-12-03 09:36:59 Re: Cast text to bytea