Bug #85
closedECos Batch - Between STARTRANGE and ENDRANGE
100%
Description
For those Sql query with "Between ? and ?" that if using preparedstatment, the set In parameter value do not require single quote (') anymore for the value. For example:
DailyReportECos.java:
private static final String STARTRANGE = "'400000000'";
private static final String ENDRANGE = "'419999999'";
The single quote defined above has been interpreted as part of the value in the SetString(1, STARTRANGE) case. Therefore no records is being found.
SO do not need single quote in this case.
Fix for all impacted program, and perform testing by compare the result with output of before migrated version.
Updated by Chooi-Mey almost 14 years ago
Pls be aware that current migStore, order no has been appended with prefix 'SUF', so adjust accordingly for the testing range.
Updated by chin-yeh almost 14 years ago
- Assignee changed from chin-yeh to Chee-Hoong
- Priority changed from Normal to Urgent
give this issue a higher priority as it's affecting the test result
Updated by Chee-Hoong almost 14 years ago
single quote removed.
please list down the other related programs.
Updated by Chee-Hoong almost 14 years ago
- Status changed from New to Feedback
- Assignee changed from Chee-Hoong to chin-yeh
Updated by Chooi-Mey almost 14 years ago
Search thru the entire project, by using File Search with keyword "400000000", browse thru the search result, and find out any code with 'xxxRANGE' and single quote value assigned.
Updated by chin-yeh almost 14 years ago
- Status changed from Feedback to In Progress
- Assignee changed from chin-yeh to Chee-Hoong
do search through all the files and amend the similiar changes.
if fixed and tested throughly, do deploy it to development environment so the others can verify it.
Updated by Chee-Hoong almost 14 years ago
- Status changed from In Progress to Resolved
ordernum 400000000 to 419999999, single quote removed for prepareStatement.
other range is stil checking
Updated by Chee-Hoong almost 14 years ago
searching order range as listed below:-
if (cntry.equals("HK"))
sqlCriteria=sqlCriteria + " and o.ORDERID between '400000000' and '419999999'";
else if(cntry.equals("ECOS"))
sqlCriteria=sqlCriteria + " and o.ORDERID between '0' and '400000000'";
else if (cntry.equals("AUS"))
sqlCriteria=sqlCriteria + " and o.ORDERID between '440000000' and '449999999'";
else if (cntry.equals("IND"))
sqlCriteria=sqlCriteria + " and o.ORDERID between '450000000' and '459999999'";
else if (cntry.equals("US"))
sqlCriteria=sqlCriteria + " and o.ORDERID between '470000000' and '479999999'";
else if (cntry.equals("NZ"))
sqlCriteria=sqlCriteria + " and o.ORDERID between '480000000' and '489999999'";
Please let me know if any missing
Updated by Chee-Hoong almost 14 years ago
all similar bug fixed. deployed to development and commited to CVS
Updated by chin-yeh almost 14 years ago
- Status changed from Resolved to Feedback
- GenOnlineOrderToWarehouseFromECosSpecial
Updated by Chee-Hoong almost 14 years ago
the latest changes will be delay since my project build slow down.
class file will be upload and code to be commit into CVS soon.
Updated by Chee-Hoong almost 14 years ago
all changes successfully uploaded and commited
Updated by chin-yeh almost 14 years ago
- Status changed from Feedback to Closed
- Resolution set to Fixed
issue closed