@@ -105,7 +105,11 @@ impl InnerClient {
105
105
}
106
106
107
107
pub fn typeinfo ( & self ) -> Option < Statement > {
108
- self . cached_typeinfo . lock ( ) . typeinfo . clone ( )
108
+ if self . transaction_pool_mode {
109
+ None
110
+ } else {
111
+ self . cached_typeinfo . lock ( ) . typeinfo . clone ( )
112
+ }
109
113
}
110
114
111
115
pub fn set_typeinfo ( & self , statement : & Statement ) {
@@ -115,7 +119,11 @@ impl InnerClient {
115
119
}
116
120
117
121
pub fn typeinfo_composite ( & self ) -> Option < Statement > {
118
- self . cached_typeinfo . lock ( ) . typeinfo_composite . clone ( )
122
+ if self . transaction_pool_mode {
123
+ None
124
+ } else {
125
+ self . cached_typeinfo . lock ( ) . typeinfo_composite . clone ( )
126
+ }
119
127
}
120
128
121
129
pub fn set_typeinfo_composite ( & self , statement : & Statement ) {
@@ -125,7 +133,11 @@ impl InnerClient {
125
133
}
126
134
127
135
pub fn typeinfo_enum ( & self ) -> Option < Statement > {
128
- self . cached_typeinfo . lock ( ) . typeinfo_enum . clone ( )
136
+ if self . transaction_pool_mode {
137
+ None
138
+ } else {
139
+ self . cached_typeinfo . lock ( ) . typeinfo_enum . clone ( )
140
+ }
129
141
}
130
142
131
143
pub fn set_typeinfo_enum ( & self , statement : & Statement ) {
@@ -135,7 +147,11 @@ impl InnerClient {
135
147
}
136
148
137
149
pub fn type_ ( & self , oid : Oid ) -> Option < Type > {
138
- self . cached_typeinfo . lock ( ) . types . get ( & oid) . cloned ( )
150
+ if self . transaction_pool_mode {
151
+ None
152
+ } else {
153
+ self . cached_typeinfo . lock ( ) . types . get ( & oid) . cloned ( )
154
+ }
139
155
}
140
156
141
157
pub fn set_type ( & self , oid : Oid , type_ : & Type ) {
@@ -145,7 +161,9 @@ impl InnerClient {
145
161
}
146
162
147
163
pub fn clear_type_cache ( & self ) {
148
- self . cached_typeinfo . lock ( ) . types . clear ( ) ;
164
+ if !self . transaction_pool_mode {
165
+ self . cached_typeinfo . lock ( ) . types . clear ( ) ;
166
+ }
149
167
}
150
168
151
169
/// Call the given function with a buffer to be used when writing out
0 commit comments