| Subject: | Re: MS SQL - Syntax error for valid query |
|---|---|
| From: | "AWFrueh1808" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Tue, 29 Jan 2008 16:09:09 +0000 (UTC) |
| Newsgroups: | macromedia.coldfusion.database_access |
OK, that's simple enough. But then I'm really confused as to why the query in my original post/example didn't work. The only single quotes in my #whereClause# variable were wrapped around each varchar value in the WHERE clause (well, HAVING) as in HAVING formNum = '12345' OR formNum = '54321' I never used a single quote within the value itself. And yet preservesinglequotes fixed it. So what was CF doing? Why did the single quotes still show up in the error msg - and in the right place? |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: MS SQL - Syntax error for valid query, Ian Skinner |
|---|---|
| Next by Date: | Re: MS SQL - Syntax error for valid query, paross1 |
| Previous by Thread: | Re: MS SQL - Syntax error for valid query, Ian Skinner |
| Next by Thread: | Re: MS SQL - Syntax error for valid query, paross1 |
| Indexes: | [Date] [Thread] [Top] [All Lists] |