aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/sqlvm/runtime
diff options
context:
space:
mode:
authorTing-Wei Lan <tingwei.lan@cobinhood.com>2019-03-28 15:54:17 +0800
committerJhih-Ming Huang <jm.huang@cobinhood.com>2019-05-06 10:44:04 +0800
commitaa7a9f5170fff9cc7040cb8794d6c3c5e36066ac (patch)
treeaa57c6b402dc276f3084aded1074e7eb42b71261 /core/vm/sqlvm/runtime
parent10861508f90fa45ad65f5f15163614cdaec8f9f8 (diff)
downloaddexon-aa7a9f5170fff9cc7040cb8794d6c3c5e36066ac.tar
dexon-aa7a9f5170fff9cc7040cb8794d6c3c5e36066ac.tar.gz
dexon-aa7a9f5170fff9cc7040cb8794d6c3c5e36066ac.tar.bz2
dexon-aa7a9f5170fff9cc7040cb8794d6c3c5e36066ac.tar.lz
dexon-aa7a9f5170fff9cc7040cb8794d6c3c5e36066ac.tar.xz
dexon-aa7a9f5170fff9cc7040cb8794d6c3c5e36066ac.tar.zst
dexon-aa7a9f5170fff9cc7040cb8794d6c3c5e36066ac.zip
core: vm: sqlvm: schema: make foreign key constraints a slice
It is allowed to declare multiple foreign key constraints on a column.
Diffstat (limited to 'core/vm/sqlvm/runtime')
-rw-r--r--core/vm/sqlvm/runtime/instructions_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/vm/sqlvm/runtime/instructions_test.go b/core/vm/sqlvm/runtime/instructions_test.go
index b316943bb..4d2e0b153 100644
--- a/core/vm/sqlvm/runtime/instructions_test.go
+++ b/core/vm/sqlvm/runtime/instructions_test.go
@@ -54,7 +54,7 @@ func createSchema(storage *common.Storage, raws []*raw) {
storage.Schema[1].Columns[i] = schema.NewColumn(
[]byte{byte(i)},
ast.ComposeDataType(raws[i].major, raws[i].minor),
- 0, 0, 0, 0,
+ 0, nil, 0,
)
}
storage.Schema.SetupColumnOffset()