From 607fa22a96392050989fe2d5e26c455b2116dc56 Mon Sep 17 00:00:00 2001 From: Pavan Kumar Sunkara Date: Thu, 14 Dec 2023 10:50:52 +0530 Subject: [PATCH] Version bump v0.1.4 --- CHANGELOG.md | 5 +++++ Cargo.toml | 2 +- src/lib.rs | 12 ++++++++---- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 969cee9..f436fca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.1.4 + +#### Enhancements +* Added support for Postgres 16 + ## 0.1.3 #### Enhancements diff --git a/Cargo.toml b/Cargo.toml index 6d949b7..91d2b26 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "ulid" publish = false -version = "0.1.3" +version = "0.1.4" edition = "2021" rust-version = "1.70.0" diff --git a/src/lib.rs b/src/lib.rs index b5fff88..99adf44 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -189,15 +189,19 @@ mod tests { #[pg_test] fn test_ulid_to_timestamp() { - let result = - Spi::get_one::<&str>(&format!("set timezone TO 'UTC'; SELECT '{TEXT}'::ulid::timestamp::text;")).unwrap(); + let result = Spi::get_one::<&str>(&format!( + "SET TIMEZONE TO 'UTC'; SELECT '{TEXT}'::ulid::timestamp::text;" + )) + .unwrap(); assert_eq!(Some(TIMESTAMP), result); } #[pg_test] fn test_timestamp_to_ulid() { - let result = - Spi::get_one::<&str>(&format!("set timezone TO 'UTC'; SELECT '{TIMESTAMP}'::timestamp::ulid::text;")).unwrap(); + let result = Spi::get_one::<&str>(&format!( + "SET TIMEZONE TO 'UTC'; SELECT '{TIMESTAMP}'::timestamp::ulid::text;" + )) + .unwrap(); assert_eq!(Some("01GV5PA9EQ0000000000000000"), result); }