freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: [freetds] ODBC: syntax error? select datediff(d,{d 2003-04-1 5},{d 2003-04-1 5})
- From: "Lowden, James K" <LowdenJK AT bernstein.com>
- To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] ODBC: syntax error? select datediff(d,{d 2003-04-1 5},{d 2003-04-1 5})
- Date: Tue, 15 Apr 2003 17:09:24 -0400
> From: Garrett Goebel [mailto:garrett AT scriptpro.com]
> Sent: April 15, 2003 4:39 PM
>
> Any ideas on why
>
> select datediff(d,{d 2003-04-15},{d 2003-04-15})
>
> Would result in a syntax error?
Peering closely at the sent buffer:
> Sending packet @ 2003-04-15 09:04:14.689699
...
> |...3.... select d|
...
> |atediff( d,'2003-|
...
> |04-15',' 2003-04-|
...
> |14'|
What happened to the closing parenthesis?
$dbh->prepare("select datediff(d,{d '2003-04-15'},{d '2003-04-14'}");
should be
$dbh->prepare("select datediff(d,{d '2003-04-15'},{d '2003-04-14'})");
--jkl
P.S. I'll follow up on the archive searching tonight.
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.
-
RE: [freetds] ODBC: syntax error? select datediff(d,{d 2003-04-1 5},{d 2003-04-1 5}),
Lowden, James K, 04/15/2003
- <Possible follow-up(s)>
- RE: [freetds] ODBC: syntax error? select datediff(d,{d 2003-04-1 5},{d 2003-04-1 5}), Garrett Goebel, 04/15/2003
- RE: [freetds] ODBC: syntax error? select datediff(d,{d 2003-04-1 5},{d 2003-04-1 5}), ZIGLIO Frediano, 04/16/2003
Archive powered by MHonArc 2.6.24.