timescaledb/tsl/test/shared/sql/build_info.sql
Sven Klemm 49b6486dad Change get_git_commit to return full commit hash
This patch changes get_git_commit to always return the full hash.
Since different git versions do not agree on the length of the
abbreviated hash this made the length flaky. To make the length
consistent change it to always be the full hash.
2022-08-01 10:45:17 +02:00

12 lines
470 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.
-- Check what get_git_commit returns
SELECT pg_typeof(commit_tag) AS commit_tag_type,
pg_typeof(commit_hash) AS commit_hash_type,
length(commit_hash) AS commit_hash_length,
pg_typeof(commit_time) AS commit_time_type
FROM _timescaledb_internal.get_git_commit();