From a29f04189c8b7457ede0b3ac01222b88853325a8 Mon Sep 17 00:00:00 2001
From: Christian Grothoff <christian@grothoff.org>
Date: Sun, 30 Jul 2023 14:02:40 +0200
Subject: unify to TEXT instead of mixing TEXT and VARCHAR

---
 src/exchangedb/0002-cs_nonce_locks.sql | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/exchangedb/0002-cs_nonce_locks.sql')

diff --git a/src/exchangedb/0002-cs_nonce_locks.sql b/src/exchangedb/0002-cs_nonce_locks.sql
index 0cb88b3f8..36c0c7a5f 100644
--- a/src/exchangedb/0002-cs_nonce_locks.sql
+++ b/src/exchangedb/0002-cs_nonce_locks.sql
@@ -15,7 +15,7 @@
 --
 
 CREATE FUNCTION create_table_cs_nonce_locks(
-  partition_suffix VARCHAR DEFAULT NULL
+  partition_suffix TEXT DEFAULT NULL
 )
 RETURNS VOID
 LANGUAGE plpgsql
@@ -60,13 +60,13 @@ $$;
 
 
 CREATE FUNCTION constrain_table_cs_nonce_locks(
-  IN partition_suffix VARCHAR
+  IN partition_suffix TEXT
 )
 RETURNS VOID
 LANGUAGE plpgsql
 AS $$
 DECLARE
-  table_name VARCHAR DEFAULT 'cs_nonce_locks';
+  table_name TEXT DEFAULT 'cs_nonce_locks';
 BEGIN
   table_name = concat_ws('_', table_name, partition_suffix);
   EXECUTE FORMAT (
-- 
cgit v1.2.3

