Skip to content

Commit 2052bfc

Browse files
KauanCurbaniKauan CurbaniFabianLars
authored andcommitted
feat(sql): added uuid type in postgres decoder (tauri-apps#1375)
Co-authored-by: Kauan Curbani <[email protected]> Co-authored-by: Fabian-Lars <[email protected]>
1 parent 4e802e6 commit 2052bfc

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/sql-uuid-type.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"sql": patch
3+
---
4+
5+
Added support for `UUID` columns to the postgres implementation.

plugins/sql/src/decode/postgres.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub(crate) fn to_json(v: PgValueRef) -> Result<JsonValue, Error> {
1414
}
1515

1616
let res = match v.type_info().name() {
17-
"CHAR" | "VARCHAR" | "TEXT" | "NAME" => {
17+
"CHAR" | "VARCHAR" | "TEXT" | "NAME" | "UUID" => {
1818
if let Ok(v) = ValueRef::to_owned(&v).try_decode() {
1919
JsonValue::String(v)
2020
} else {

0 commit comments

Comments
 (0)