fix(orm): fix broken Table.Delete method (#11112)

This commit is contained in:
Aaron Craelius
2022-02-03 15:59:16 -05:00
committed by GitHub
parent e0543a3be0
commit 888548ab53
3 changed files with 34 additions and 2 deletions
+25
View File
@@ -1098,6 +1098,31 @@ ITERATOR 0100 -> 0101
PK testpb.ExampleTable 9/0/ -> {"u32":9,"b":true}
NEXT
VALID false
GET 0100000000047ffffffffffffffe616263 100e2203616263
PK testpb.ExampleTable 4/-2/abc -> {"u32":4,"u64":14,"str":"abc","bz":"abc","i64":-2}
ORM DELETE testpb.ExampleTable {"u32":4,"u64":14,"str":"abc","bz":"abc","i64":-2}
DEL 0100000000047ffffffffffffffe616263
DEL PK testpb.ExampleTable 4/-2/abc -> {"u32":4,"str":"abc","i64":-2}
DEL 0101000000000000000e616263
DEL ERR:EOF
DEL 010261626300000000047ffffffffffffffe
DEL IDX testpb.ExampleTable str/u32/i64 : abc/4/-2 -> 4/-2/abc
DEL 01030361626361626300000000047ffffffffffffffe
DEL IDX testpb.ExampleTable bz/str/u32/i64 : [97 98 99]/abc/4/-2 -> 4/-2/abc
ITERATOR 0100 -> 0101
VALID true
KEY 0100000000047fffffffffffffff616263 10102203616263
PK testpb.ExampleTable 4/-1/abc -> {"u32":4,"u64":16,"str":"abc","bz":"abc","i64":-1}
NEXT
VALID true
KEY 0100000000077fffffffffffffff616265 100b
PK testpb.ExampleTable 7/-1/abe -> {"u32":7,"u64":11,"str":"abe","i64":-1}
NEXT
VALID true
KEY 0100000000098000000000000000 7801
PK testpb.ExampleTable 9/0/ -> {"u32":9,"b":true}
NEXT
VALID false
CLOSE
CLOSE
CLOSE