leo27lijiang / optimist

Automatically exported from code.google.com/p/optimist
GNU Lesser General Public License v3.0
0 stars 0 forks source link

version comparing problem #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. suppose version in DB is 2
2. set version to value greater than 2, 20 for example
3. update success-ed and the version in DB changed to 21

What is the expected output? What do you see instead?
the update should be rejected, because the version does not match what in DB

What version of the product are you using? On what operating system?
all version

Please provide any additional information below.
the statement "return currentValueLong > thisVersion;" in 
EntityWrapper.isStale() should be changed to "return currentValueLong != 
thisVersion;"

Original issue reported on code.google.com by whysoman...@gmail.com on 27 Apr 2012 at 3:21