[code]I have this code below
equipment = ‘test’
model = ‘test’
pm = [‘test1’,‘test2’]
etch_type = ("SELECT b.requiredrun, b.status "
"FROM factory_vim.tbl_EtchTypeInfo a "
"JOIN "
"requiredruninfo b ON a.etchtype = b.layer "
"WHERE "
"b.equipment = ? "
"AND a.recipe = ? "
"AND b.processresource in ")
etch_type += ‘(’ + ‘,’.join(’?’ for x in pm) + ‘)’
print etch_type
etch_type_qry = system.db.runPrepQuery(etch_type,[equipment,model,’,’.join(pm)])[/code]
this is the error im getting.
caused by Exception: Error executing system.db.runPrepQuery(SELECT b.requiredrun, b.status FROM factory_vim.tbl_EtchTypeInfo a JOIN requiredruninfo b ON a.etchtype = b.layer WHERE b.equipment = ? AND a.recipe = ? AND b.processresource in (?,?), , [test, test, test1,test2],
caused by GatewayException: No value specified for parameter 4
caused by SQLException: No value specified for parameter 4