unnecessary table alias

deepsource-autofix-76c6eb20
Dan Gowans 2022-09-30 15:50:32 -04:00
parent 5ad8e76760
commit f444e803ce
2 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@ export const getWorkOrders = (filters, options) => {
for (const lotNamePiece of lotNamePieces) { for (const lotNamePiece of lotNamePieces) {
sqlWhereClause += sqlWhereClause +=
" and w.workOrderId in (" + " and w.workOrderId in (" +
"select workOrderId from WorkOrderLots where recordDelete_timeMillis is null and lotId in (select lotId from Lots oo where recordDelete_timeMillis is null and instr(lower(lotName), ?)))"; "select workOrderId from WorkOrderLots where recordDelete_timeMillis is null and lotId in (select lotId from Lots where recordDelete_timeMillis is null and instr(lower(lotName), ?)))";
sqlParameters.push(lotNamePiece); sqlParameters.push(lotNamePiece);
} }
} }

View File

@ -79,7 +79,7 @@ export const getWorkOrders = (
for (const lotNamePiece of lotNamePieces) { for (const lotNamePiece of lotNamePieces) {
sqlWhereClause += sqlWhereClause +=
" and w.workOrderId in (" + " and w.workOrderId in (" +
"select workOrderId from WorkOrderLots where recordDelete_timeMillis is null and lotId in (select lotId from Lots oo where recordDelete_timeMillis is null and instr(lower(lotName), ?)))"; "select workOrderId from WorkOrderLots where recordDelete_timeMillis is null and lotId in (select lotId from Lots where recordDelete_timeMillis is null and instr(lower(lotName), ?)))";
sqlParameters.push(lotNamePiece); sqlParameters.push(lotNamePiece);
} }
} }