Sha256: 24c3407535d9d75a12c8a7e97de6755134b5ebc4eb29acd772e5577db7a51a43

Contents?: true

Size: 245 Bytes

Versions: 16

Compression:

Stored size: 245 Bytes

Contents

CREATE OR REPLACE FUNCTION message_store.hash_64(
  value varchar
)
RETURNS bigint
AS $$
DECLARE
  _hash bigint;
BEGIN
  SELECT left('x' || md5(hash_64.value), 17)::bit(64)::bigint INTO _hash;
  return _hash;
END;
$$ LANGUAGE plpgsql
IMMUTABLE;

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
message-db-3.0.0 database/functions/hash-64.sql
message-db-2.1.6 database/functions/hash-64.sql
message-db-2.1.5 database/functions/hash-64.sql
message-db-2.1.4 database/functions/hash-64.sql
message-db-2.1.3 database/functions/hash-64.sql
message-db-2.1.2 database/functions/hash-64.sql
message-db-2.1.1 database/functions/hash-64.sql
message-db-2.1.0 database/functions/hash-64.sql
message-db-2.0.2 database/functions/hash-64.sql
message-db-2.0.1 database/functions/hash-64.sql
message-db-2.0.0 database/functions/hash-64.sql
message-db-1.1.3 database/functions/hash-64.sql
message-db-1.1.2 database/functions/hash-64.sql
message-db-1.1.1 database/functions/hash-64.sql
message-db-1.1.0 database/functions/hash-64.sql
message-db-1.0.0 database/functions/hash-64.sql