2022-10-13 10:36:20 +02:00
|
|
|
--liquibase formatted sql
|
|
|
|
|
|
|
|
|
|
|
|
-- ============================================================================
|
|
|
|
-- NUMERIC-HASH-FUNCTIONS
|
2024-03-28 12:15:13 +01:00
|
|
|
--changeset numeric-hash-functions:1 endDelimiter:--//
|
2022-10-13 10:36:20 +02:00
|
|
|
-- ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
create function bigIntHash(text) returns bigint as $$
|
|
|
|
select ('x'||substr(md5($1),1,16))::bit(64)::bigint;
|
|
|
|
$$ language sql;
|
|
|
|
--//
|