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-04-11 10:39:59 +0800 |
commit | 5c45e7a10bc363f43b43a01ebd9b7093eee9f53c (patch) | |
tree | ef59fb3562521f0a245a63d5ba2b749625f0fa2c | |
parent | 0f182d4ee3b2087234369ac49ea4fbe833b064da (diff) | |
download | dexon-5c45e7a10bc363f43b43a01ebd9b7093eee9f53c.tar dexon-5c45e7a10bc363f43b43a01ebd9b7093eee9f53c.tar.gz dexon-5c45e7a10bc363f43b43a01ebd9b7093eee9f53c.tar.bz2 dexon-5c45e7a10bc363f43b43a01ebd9b7093eee9f53c.tar.lz dexon-5c45e7a10bc363f43b43a01ebd9b7093eee9f53c.tar.xz dexon-5c45e7a10bc363f43b43a01ebd9b7093eee9f53c.tar.zst dexon-5c45e7a10bc363f43b43a01ebd9b7093eee9f53c.zip |
core: vm: sqlvm: schema: move Rest to the bottom
It is a special field which should not be accessed by any other files.
-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. |