File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ use crate::{ast::Ident, tokenizer::Span};
3131use sqlparser_derive:: { Visit , VisitMut } ;
3232
3333/// Primitive SQL values such as number and string
34- #[ derive( Debug , Clone , Eq , Ord ) ]
34+ #[ derive( Debug , Clone , Eq ) ]
3535#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
3636#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
3737pub struct ValueWithSpan {
@@ -51,6 +51,12 @@ impl PartialOrd for ValueWithSpan {
5151 }
5252}
5353
54+ impl Ord for ValueWithSpan {
55+ fn cmp ( & self , other : & Self ) -> core:: cmp:: Ordering {
56+ self . value . cmp ( & other. value )
57+ }
58+ }
59+
5460impl core:: hash:: Hash for ValueWithSpan {
5561 fn hash < H : core:: hash:: Hasher > ( & self , state : & mut H ) {
5662 self . value . hash ( state) ;
You can’t perform that action at this time.
0 commit comments