Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Sudhee_Maximus
Creator
Creator

issue with where clause in mysql db component when comparing context variable with file name

Hi There I am not able to figure out the reason behind the error in the place of FILENAME comparison with a context variable, I need to compare a filename stored in a context variable against the query with some other join values.

Unfortunately getting below error

Error :-

java.sql.SQLSyntaxErrorException: Unknown column 'XYZDATA_*****_********_****Test.dat' in 'where clause'

I want to know why this error occurs and how to solve this issue or what changes needed in the query to resolve this.

Thanks....

Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable

try to add single quotes to the value, eg:

"...where filename='"+context.filename+"'"

 

View solution in original post

1 Reply
Anonymous
Not applicable

try to add single quotes to the value, eg:

"...where filename='"+context.filename+"'"