26 lines
932 B
Diff
26 lines
932 B
Diff
From 1cbfc4beddfb0d89ce8e8ce17a64a3c85194f302 Mon Sep 17 00:00:00 2001
|
|
From: jxy_git <jiangxinyu@kylinos.cn>
|
|
Date: Tue, 2 Aug 2022 14:48:05 +0800
|
|
Subject: [PATCH] Fix date matching failure
|
|
|
|
---
|
|
spec/pg/basic_type_mapping_spec.rb | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/spec/pg/basic_type_mapping_spec.rb b/spec/pg/basic_type_mapping_spec.rb
|
|
index be9c7c5..9720d86 100644
|
|
--- a/spec/pg/basic_type_mapping_spec.rb
|
|
+++ b/spec/pg/basic_type_mapping_spec.rb
|
|
@@ -99,7 +99,7 @@ describe 'Basic type mapping' do
|
|
[Time.new(2019, 12, 8, 20, 38, 12.123, "-01:00")], # Time -> timestamptz[]
|
|
], nil, basic_type_mapping )
|
|
|
|
- expect( res.values[0][0] ).to match( /\{\"2019-12-08 \d\d:38:12.123[+-]\d\d\"\}/ )
|
|
+ expect( res.values[0][0] ).to match( /\{\"2019-12-0\d \d\d:38:12.123[+-]\d\d\"\}/ )
|
|
expect( result_typenames(res) ).to eq( ['timestamp with time zone[]'] )
|
|
end
|
|
|
|
--
|
|
2.34.1.windows.1
|
|
|