diff --git a/.changes/sql-uuid-type.md b/.changes/sql-uuid-type.md new file mode 100644 index 000000000..879104b84 --- /dev/null +++ b/.changes/sql-uuid-type.md @@ -0,0 +1,5 @@ +--- +"sql": patch +--- + +Added support for `UUID` columns to the postgres implementation. \ No newline at end of file diff --git a/plugins/sql/src/decode/postgres.rs b/plugins/sql/src/decode/postgres.rs index e38ad0259..6f689dced 100644 --- a/plugins/sql/src/decode/postgres.rs +++ b/plugins/sql/src/decode/postgres.rs @@ -14,7 +14,7 @@ pub(crate) fn to_json(v: PgValueRef) -> Result { } let res = match v.type_info().name() { - "CHAR" | "VARCHAR" | "TEXT" | "NAME" => { + "CHAR" | "VARCHAR" | "TEXT" | "NAME" | "UUID" => { if let Ok(v) = ValueRef::to_owned(&v).try_decode() { JsonValue::String(v) } else {