From ec0d94dd0e3ad5c7ea1d10160ced167b8e71ccd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Tue, 24 Dec 2019 14:14:26 +0100 Subject: [PATCH] Add test for CDB_UserDataSize identifier quoation --- test/CDB_QuotaTest.sql | 3 +++ test/CDB_QuotaTest_expect | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/CDB_QuotaTest.sql b/test/CDB_QuotaTest.sql index bbb8753..670f4f6 100644 --- a/test/CDB_QuotaTest.sql +++ b/test/CDB_QuotaTest.sql @@ -60,6 +60,9 @@ SELECT 'excess3', catch_error($$INSERT INTO big VALUES (3);$$); -- disallowed, q DROP TABLE big; SELECT CDB_SetUserQuotaInBytes(0); +CREATE SCHEMA "complex-name%_with'quotes"""; +SELECT CDB_UserDataSize('"complex-name%_with''quotes"'); +DROP SCHEMA "complex-name%_with'quotes"""; set client_min_messages to NOTICE; DROP FUNCTION catch_error(text); diff --git a/test/CDB_QuotaTest_expect b/test/CDB_QuotaTest_expect index 49f9e7d..b982606 100644 --- a/test/CDB_QuotaTest_expect +++ b/test/CDB_QuotaTest_expect @@ -30,6 +30,9 @@ DROP TABLE excess3|t DROP TABLE 0 +CREATE SCHEMA +0 +DROP SCHEMA SET DROP FUNCTION DROP FUNCTION