diff options
author | drh <> | 2022-10-18 13:27:31 +0000 |
---|---|---|
committer | drh <> | 2022-10-18 13:27:31 +0000 |
commit | 0e522c068a8ff85aaadc4e61ab57a4090908a2da (patch) | |
tree | 42603cfd7ce6c8ecea8ec823c589e197dea4e85b /src | |
parent | 43fce6bb0d85d596615f9f71b040dfa5ef395d65 (diff) | |
download | sqlite-0e522c068a8ff85aaadc4e61ab57a4090908a2da.tar.gz sqlite-0e522c068a8ff85aaadc4e61ab57a4090908a2da.zip |
Correct sort order for serial-type 10 entries in the database file. This
is a continuation of [4fb77e96fa89a23a].
FossilOrigin-Name: 904b54625d985e742888e06ba792cab316b9ec9d6669d9cf509bac48030373ca
Diffstat (limited to 'src')
-rw-r--r-- | src/vdbeaux.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index 67de532d8..131740ac6 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -4585,7 +4585,7 @@ int sqlite3VdbeRecordCompareWithSkip( serial_type = aKey1[idx1]; testcase( serial_type==12 ); if( serial_type>=10 ){ - rc = +1; + rc = serial_type==10 ? -1 : +1; }else if( serial_type==0 ){ rc = -1; }else if( serial_type==7 ){ @@ -4610,7 +4610,7 @@ int sqlite3VdbeRecordCompareWithSkip( ** numbers). Types 10 and 11 are currently "reserved for future ** use", so it doesn't really matter what the results of comparing ** them to numberic values are. */ - rc = +1; + rc = serial_type==10 ? -1 : +1; }else if( serial_type==0 ){ rc = -1; }else{ |