diff options
author | Jhih-Ming Huang <jm.huang@cobinhood.com> | 2019-02-12 18:08:35 +0800 |
---|---|---|
committer | Jhih-Ming Huang <jm.huang@cobinhood.com> | 2019-03-26 17:48:21 +0800 |
commit | 1fca05efa62853d1ed512a73d9f58af703d474aa (patch) | |
tree | 511209899702bfbbc94b453db2f64ee642e137ad /core | |
parent | 86ee06b89ace2443e112e5c00a3cf3b30ca0b3bf (diff) | |
download | dexon-1fca05efa62853d1ed512a73d9f58af703d474aa.tar dexon-1fca05efa62853d1ed512a73d9f58af703d474aa.tar.gz dexon-1fca05efa62853d1ed512a73d9f58af703d474aa.tar.bz2 dexon-1fca05efa62853d1ed512a73d9f58af703d474aa.tar.lz dexon-1fca05efa62853d1ed512a73d9f58af703d474aa.tar.xz dexon-1fca05efa62853d1ed512a73d9f58af703d474aa.tar.zst dexon-1fca05efa62853d1ed512a73d9f58af703d474aa.zip |
core: vm: sqlvm: modify Tuple.Data.Value type
Modify Tuple.Data.Value type from *big.Int to interface{}
and remove Max, Min.
Diffstat (limited to 'core')
-rw-r--r-- | core/vm/sqlvm/runtime/instructions.go | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/core/vm/sqlvm/runtime/instructions.go b/core/vm/sqlvm/runtime/instructions.go index f642a2515..7ebfd2a8b 100644 --- a/core/vm/sqlvm/runtime/instructions.go +++ b/core/vm/sqlvm/runtime/instructions.go @@ -2,7 +2,6 @@ package runtime import ( "fmt" - "math/big" "strings" "github.com/dexon-foundation/dexon/core/vm/sqlvm/ast" @@ -30,16 +29,13 @@ type Raw struct { MinorType ast.DataTypeMinor // for not bytes - Value *big.Int - Max, Min *big.Int - // for bytes - Bytes []byte + Value interface{} } func (r *Raw) String() string { return fmt.Sprintf( - "MajorType: %v, MinorType: %v, Value: %v, Bytes: %v", - r.MajorType, r.MinorType, r.Value, r.Bytes) + "MajorType: %v, MinorType: %v, Value: %v", + r.MajorType, r.MinorType, r.Value) } // Tuple is collection of Raw. |