]|V|[agnus
05-03-2005, 09:59 PM
at first i thought my problem had to do with a join i was attempting, but i found out that i stop getting the "syntax error or access violation" message from ColdFusion when i remove the variable references to a date object. now, this is obviously not a general CF shortcoming. i use dates in queries and otherwise all the time. i am wondering if anybody can spy anything, perhaps use of reserved words in SQL, that might be 'causing me guff.
here is a sample query:
SELECT * FROM auctions,auctions_bids WHERE (auctions.id = auctions_bids.auction) AND (auctions.end > {ts '2005-05-03 15:04:48'}) ORDER BY auctions.end DESC
"{ts '2005-05-03 15:04:48'}" is what is returned from the CF function to create an ODBCDateTime formatted value. if i change that query to:
SELECT * FROM auctions,auctions_bids WHERE (auctions.id = auctions_bids.auction) ORDER BY auctions.end DESC
the error goes away.
:confused: :confused: :confused:
here is a sample query:
SELECT * FROM auctions,auctions_bids WHERE (auctions.id = auctions_bids.auction) AND (auctions.end > {ts '2005-05-03 15:04:48'}) ORDER BY auctions.end DESC
"{ts '2005-05-03 15:04:48'}" is what is returned from the CF function to create an ODBCDateTime formatted value. if i change that query to:
SELECT * FROM auctions,auctions_bids WHERE (auctions.id = auctions_bids.auction) ORDER BY auctions.end DESC
the error goes away.
:confused: :confused: :confused: