Re: Odd Timestamp Error WAS Re: Function Creation Error - Mailing list pgsql-novice

From Tom Lane
Subject Re: Odd Timestamp Error WAS Re: Function Creation Error
Date
Msg-id 11701.1176074195@sss.pgh.pa.us
Whole thread Raw
In response to Re: Odd Timestamp Error WAS Re: Function Creation Error  (Joshua Kramer <josh@globalherald.net>)
List pgsql-novice
Joshua Kramer <josh@globalherald.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

pgsql-novice by date:

Previous
From: Joshua Kramer
Date:
Subject: Re: Odd Timestamp Error WAS Re: Function Creation Error
Next
From: "Oscar Chavarria"
Date:
Subject: Function problem