@@ -10,7 +10,6 @@ use crate::protocol::text::{ColumnDefinition, ColumnFlags, ColumnType};
10
10
pub struct MySqlTypeInfo {
11
11
pub ( crate ) r#type : ColumnType ,
12
12
pub ( crate ) flags : ColumnFlags ,
13
- pub ( crate ) collation : u16 ,
14
13
15
14
// [max_size] for integer types, this is (M) in BIT(M) or TINYINT(M)
16
15
#[ cfg_attr( feature = "offline" , serde( default ) ) ]
@@ -22,7 +21,6 @@ impl MySqlTypeInfo {
22
21
Self {
23
22
r#type : ty,
24
23
flags : ColumnFlags :: BINARY ,
25
- collation : 63 ,
26
24
max_size : None ,
27
25
}
28
26
}
@@ -32,7 +30,6 @@ impl MySqlTypeInfo {
32
30
Self {
33
31
r#type : ColumnType :: Enum ,
34
32
flags : ColumnFlags :: BINARY ,
35
- collation : 63 ,
36
33
max_size : None ,
37
34
}
38
35
}
@@ -55,7 +52,6 @@ impl MySqlTypeInfo {
55
52
Self {
56
53
r#type : column. r#type ,
57
54
flags : column. flags ,
58
- collation : column. collation ,
59
55
max_size : Some ( column. max_size ) ,
60
56
}
61
57
}
@@ -73,7 +69,7 @@ impl TypeInfo for MySqlTypeInfo {
73
69
}
74
70
75
71
fn name ( & self ) -> & str {
76
- self . r#type . name ( self . collation , self . flags , self . max_size )
72
+ self . r#type . name ( self . flags , self . max_size )
77
73
}
78
74
}
79
75
@@ -102,9 +98,8 @@ impl PartialEq<MySqlTypeInfo> for MySqlTypeInfo {
102
98
| ColumnType :: String
103
99
| ColumnType :: VarString
104
100
| ColumnType :: Enum => {
105
- return self . collation == other. collation ;
101
+ return self . flags == other. flags ;
106
102
}
107
-
108
103
_ => { }
109
104
}
110
105
0 commit comments