Skip to content

Commit 8b0c609

Browse files
committed
chore: udpate comments
Signed-off-by: Ning Sun <[email protected]>
1 parent 50b5ac2 commit 8b0c609

File tree

1 file changed

+2
-3
lines changed
  • arrow-pg/src/datatypes

1 file changed

+2
-3
lines changed

arrow-pg/src/datatypes/df.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ where
6666
} else if let Some(infer_type) = inferenced_type {
6767
into_pg_type(infer_type)
6868
} else {
69-
// Default to TEXT for untyped parameters in extended queries
70-
// This allows arithmetic operations to work with implicit casting
7169
Ok(Type::UNKNOWN)
7270
}
7371
}
@@ -263,7 +261,8 @@ where
263261
// TODO: add more advanced types (composite types, ranges, etc.)
264262
_ => {
265263
// the client didn't provide type information and we are also
266-
// unable to inference the type.
264+
// unable to inference the type, or it's a type that we haven't
265+
// supported:
267266
//
268267
// In this case we retry to resolve it as String or StringArray
269268
let value = portal.parameter::<String>(i, &pg_type)?;

0 commit comments

Comments
 (0)