kentico_jurajo
-
8/17/2010 7:58:14 AM
RE:TreeProvider.Select... and the where parameter, does it prepare statements for SQL Server?
Hi,
We are checking parameters like siteName, aliasPath, cultureCode, etc. but what is in the WHERE condition or ORDER BY is fully up to you. If these would be escaped, you won't be able to use something like this in where condition: (DocumentCulture = N'nl-NL')) AND (NodeName = 'Detail foto')
There is no way how to ensure this in general for every possible condition, so it is up to you what you will write in your code.
Best regards, Juraj Ondrus
|