Geeze,

I sure hope anyone who read this paragraph:
Still fighting that thing, eh? I spent 3 hours this afternoon trying
to figure out why a simple INSERT query wouldn't work... finally I
wrapped the query text in ## and a cfoutput, then copy/pasted it into
Query Analyzer... only to find out that the problem was a new column
in the database that was marked not nullable. I hadn't updated the
insert to account for the new column.

Knew I was speaking in shorthand. It's embarrasing.

I mean, I pulled it out of the cfquery tag, wrapped it in a cfoutput
instead, and rendered the text as-was to the screen... so I had my
query, verbatim, as the cfquery tag would be receiving it. Then I
copy/pasted THAT into query analyzer, so I could get the actual SQL
Server error that was screwing me up.

I haven't always been really good about my error handling, because, I
guess, I've always thought that if you make the system so it works
well, you don't get errors. And, mostly, it's held true. But, times
like today remind me that error handling isn't just for end users...
it's more for us than anything, because if we do it right, it'll TELL
us what's wrong most of the time.

Anyway... good luck with your regexes!

Laterz,
J


On Sun, 16 Jan 2005 22:31:51 -0500, Ewok <[EMAIL PROTECTED]> wrote:
> At least I'm not alone :)
> 
> I had thought about something to that effect but...
> 
> I wanted content between [code] and [/code] to stay exactly as the user
> typed it. So if there are <b> tags they display as <b> and if there are [b]
> tags they display as [b]
> 
> Jim Davis came up with a loop that extracts code blocks and replaces them
> with a marker... then you can just do your replaces on everything then
> replace the markers with the original code blocks and voila!
> 
> It worked well but my assumption was that a regular expression that can
> replace an open tag and an end tag and at the same time make the decision on
> rather or not it's between [code] and [/code] would be much faster.
> 
> I'm at the point where I'll probably just combine both and move on with my
> life.
> 
> Thanks for the thoughts, and watch those non-nullable fields! :)
> 


-- 
Continuum Media Group LLC
Burnsville, MN 55337
http://www.web-relevant.com
http://cfobjective.blogspot.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Protect your mail server with built in anti-virus protection. It's not only 
good for you, it's good for everybody.
http://www.houseoffusion.com/banners/view.cfm?bannerid=39

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190663
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

Reply via email to