aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/sqlvm/runtime
diff options
context:
space:
mode:
authorJhih-Ming Huang <jm.huang@cobinhood.com>2019-05-06 15:41:11 +0800
committerGitHub <noreply@github.com>2019-05-06 15:41:11 +0800
commit2119d801bb3794ca9031bc290ce568df1bcd6541 (patch)
treeafe3eeb7a390912bb257f6b135cf8700e4ed2d53 /core/vm/sqlvm/runtime
parent996310cbd484b5ff1ea76068578314d71973770f (diff)
downloaddexon-2119d801bb3794ca9031bc290ce568df1bcd6541.tar
dexon-2119d801bb3794ca9031bc290ce568df1bcd6541.tar.gz
dexon-2119d801bb3794ca9031bc290ce568df1bcd6541.tar.bz2
dexon-2119d801bb3794ca9031bc290ce568df1bcd6541.tar.lz
dexon-2119d801bb3794ca9031bc290ce568df1bcd6541.tar.xz
dexon-2119d801bb3794ca9031bc290ce568df1bcd6541.tar.zst
dexon-2119d801bb3794ca9031bc290ce568df1bcd6541.zip
core: vm: sqlvm: storage: implement bitmap and increasePK (#382)
* core: vm: sqlvm: storage: implement bitmap and increasePK * fixup! core: vm: sqlvm: storage: implement bitmap and increasePK * fixup! core: vm: sqlvm: storage: implement bitmap and increasePK
Diffstat (limited to 'core/vm/sqlvm/runtime')
-rw-r--r--core/vm/sqlvm/runtime/instructions_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/vm/sqlvm/runtime/instructions_test.go b/core/vm/sqlvm/runtime/instructions_test.go
index 77ba0ff70..a00ac12dd 100644
--- a/core/vm/sqlvm/runtime/instructions_test.go
+++ b/core/vm/sqlvm/runtime/instructions_test.go
@@ -457,7 +457,8 @@ func (s opRepeatPKSuite) getTestCases(storage *common.Storage) []repeatPKTestCas
},
}
for _, t := range testCases {
- storage.SetPK(t.address, t.tableRef, t.expectedIDs)
+ headerSlot := storage.GetPrimaryPathHash(t.tableRef)
+ storage.SetPK(t.address, headerSlot, t.expectedIDs)
}
return testCases
}