Re: Odd Timestamp Error WAS Re: Function Creation Error

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joshua Kramer <josh(at)globalherald(dot)net>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Odd Timestamp Error WAS Re: Function Creation Error
Date: 2007-04-08 23:16:35
Message-ID: 11701.1176074195@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Joshua Kramer <josh(at)globalherald(dot)net> writes:
>> You seem to be confused about the difference between a literal constant
>> and an expression. That should just be

> Thanks again, Tom. I didn't notice that - I'll have to see if I can coax
> the software into using the expression instead of the string literal. (It
> may be an ADODB thing - because the web app is running a parameterized
> query, it automatically inserts the quotation marks. I'll need to
> determine how to get around that.)

Hm, you might have some difficulty there --- I wouldn't be surprised if
ADODB thinks it's protecting you from SQL-injection attacks. You should
not expect that you can insert SQL expressions via parameter
substitution mechanisms. You might find that computing the timestamps
on the client side is the path of least resistance...

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Oscar Chavarria 2007-04-09 14:16:10 Function problem
Previous Message Joshua Kramer 2007-04-08 19:22:43 Re: Odd Timestamp Error WAS Re: Function Creation Error