Something that I like about the 1=1... It's pretty handy for getting rid of those "WHERE blah blah" "AND blah blah" things that sometimes happen when you have conditional WHERE stuff. Just put a WHERE 1=1, and, the rest are ANDs.
Just a little tidbit that makes it easier when you do have to do that stuff. If that even makes any sense. Sheesh. =P Must be a lazy day today. :den On 4/14/06, Adam Howitt <[EMAIL PROTECTED]> wrote: > > This bug usually happens when you change something on the database > server when you are using a prepared statement (cfqueryparam). The > workarounds I can recommend are > 1. Disable "maintain client connections" in the cf admin - less desirable > 2. Change the query ever so slightly. I usually add an extra where > clause : "AND 1=1" which has no performance penalty but makes the > prepared statement recompile > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237974 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

