mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-24 06:53:59 +08:00
This change clearly separates handling of statement parameters. By default parameters are represented in binary format but if not supported it can fallback to text format. A GUC timescaledb.enable_cluster_binary_format can be used to force TEXT.
18 lines
605 B
SQL
18 lines
605 B
SQL
-- This file and its contents are licensed under the Timescale License.
|
|
-- Please see the included NOTICE for copyright information and
|
|
-- LICENSE-TIMESCALE for a copy of the license.
|
|
|
|
\c :TEST_DBNAME :ROLE_SUPERUSER
|
|
|
|
CREATE OR REPLACE FUNCTION _timescaledb_internal.test_stmt_params_format(binary BOOL)
|
|
RETURNS VOID
|
|
AS :TSL_MODULE_PATHNAME, 'tsl_test_stmt_params_format'
|
|
LANGUAGE C STRICT;
|
|
|
|
-- by default we use binary format
|
|
SELECT _timescaledb_internal.test_stmt_params_format(true);
|
|
|
|
SET timescaledb.enable_connection_binary_data = false;
|
|
|
|
SELECT _timescaledb_internal.test_stmt_params_format(false);
|