Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread INTERVAL parameters loophole
Tue, May 25 2010 11:55 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

I seem to have discovered a loophole in not being able to set parameters for INTERVALS. It works so I can now have a user defined parameter without having to rebuild the statement.

SELECT
_ID,
_fkContacts,
_fkStaff,
_InOutInd,
_ELNtype,
IF(_aList IS NOT NULL,TRUE,FALSE) AS _HasAttachments,
_Subject,
_Comments,
_Timestamp
FROM ELN
WHERE
_fkContacts = :IDToMatch
AND
_TimeStamp   >= CURRENT_TIMESTAMP - CAST(:Months AS INTERVAL  MONTH) <<<<<<<<<<<
ORDER BY _TimeStamp DESC


Roy Lambert
Tue, May 25 2010 6:04 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< I seem to have discovered a loophole in not being able to set parameters
for INTERVALS. It works so I can now have a user defined parameter without
having to rebuild the statement. >>

Yes, that was fixed here:

http://www.elevatesoft.com/incident?action=viewrep&category=edb&release=2.02&incident=3065

--
Tim Young
Elevate Software
www.elevatesoft.com
Wed, May 26 2010 2:56 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

How on earth did I miss that all the way from 2.03b1 to 2.03b13?

Roy Lambert
Image