diff options
author | Ting-Wei Lan <tingwei.lan@cobinhood.com> | 2019-03-26 15:54:19 +0800 |
---|---|---|
committer | Jhih-Ming Huang <jm.huang@cobinhood.com> | 2019-05-06 10:44:04 +0800 |
commit | f28f408c6259d7342bcb3aad6a6558db78943cfe (patch) | |
tree | 3a1d04062fec1e1fe0d62a8934846c0ebc740622 /core/vm | |
parent | fc018ce069cefde728b8b579d802b8fa1c008af6 (diff) | |
download | dexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.tar dexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.tar.gz dexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.tar.bz2 dexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.tar.lz dexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.tar.xz dexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.tar.zst dexon-f28f408c6259d7342bcb3aad6a6558db78943cfe.zip |
core: vm: sqlvm: schema: move Rest to the bottom
It is a special field which should not be accessed by any other files.
Diffstat (limited to 'core/vm')
-rw-r--r-- | core/vm/sqlvm/schema/schema.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/vm/sqlvm/schema/schema.go b/core/vm/sqlvm/schema/schema.go index 56b0be49a..2937d3660 100644 --- a/core/vm/sqlvm/schema/schema.go +++ b/core/vm/sqlvm/schema/schema.go @@ -161,9 +161,11 @@ type column struct { ForeignTable TableRef ForeignColumn ColumnRef Sequence SequenceRef - Rest interface{} SlotOffset uint8 ByteOffset uint8 + // Rest is a special field reserved for use in EncodeRLP. The value stored + // in it will be overwritten every time EncodeRLP is called. + Rest interface{} } // Column defines sqlvm index struct. |