fix: correct signature of current_schemas function (#7233)

This commit is contained in:
Ning Sun
2025-11-16 20:42:09 -05:00
committed by GitHub
parent b1525e566b
commit 2bbc4bc4bc
3 changed files with 32 additions and 15 deletions

View File

@@ -13,15 +13,15 @@ SELECT session_user is not null;
| t |
+----------------------------+
-- session_user and current_schema
-- current_schema
-- SQLNESS PROTOCOL POSTGRES
select current_schema();
select current_schema(), current_schemas(true), current_schemas(false), version(), current_database();
+------------------+
| current_schema() |
+------------------+
| public |
+------------------+
+------------------+---------------------------------------------------------+---------------------------------+------------------------------+--------------------+
| current_schema() | current_schemas(Boolean(true)) | current_schemas(Boolean(false)) | version | current_database() |
+------------------+---------------------------------------------------------+---------------------------------+------------------------------+--------------------+
| public | {public,information_schema,pg_catalog,greptime_private} | {public} | 16.3-greptimedb-1.0.0-beta.1 | greptime |
+------------------+---------------------------------------------------------+---------------------------------+------------------------------+--------------------+
-- search_path for pg using schema for now FIXME when support real search_path
-- SQLNESS PROTOCOL POSTGRES

View File

@@ -5,9 +5,9 @@ create database pg_catalog;
-- SQLNESS PROTOCOL POSTGRES
SELECT session_user is not null;
-- session_user and current_schema
-- current_schema
-- SQLNESS PROTOCOL POSTGRES
select current_schema();
select current_schema(), current_schemas(true), current_schemas(false), version(), current_database();
-- search_path for pg using schema for now FIXME when support real search_path
-- SQLNESS PROTOCOL POSTGRES