GymRatTrax / GymRatTrax-FitnessScheduler

GymRatTrax - Personal Fitness Scheduler
http://gymrattrax.com/
4 stars 1 forks source link

getWorkoutById doesn't return object unless ID is most recent #29

Closed chrisstonedev closed 9 years ago

chrisstonedev commented 9 years ago

From @christopher-stone on March 21, 2015 0:9

Bug was detected in which ID the function erroneously checks for all workouts with an ID value at least what is passed in. Then, an error trap makes sure that the record set only contains one record. The error trap should stay but the query revised to look for an ID that equals the input, not matches at least the input.

Copied from original issue: wford7/AndroidStudio#29

chrisstonedev commented 9 years ago

Resolved. Fixed via checked in changes to code in: DBHelper.java.