1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 07:36:14 -05:00

cast Min function values to int (#2459)

This commit is contained in:
Kyle Spearrin
2022-12-02 13:55:51 -05:00
committed by GitHub
parent a0ab60f984
commit 41db511872
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ INSERT INTO "OrganizationApiKey"(
"ApiKey",
"Type",
"RevisionDate")
SELECT gen_random_uuid(),
SELECT uuid_in(overlay(overlay(md5(random()::text || ':' || random()::text) placing '4' from 13) placing to_hex(floor(random()*(11-8+1) + 8)::int)::text from 17)::cstring),
"Id" AS "OrganizationId",
"ApiKey",
0 AS "Type",

View File

@ -24,7 +24,7 @@ INSERT INTO "OrganizationApiKey"(
"ApiKey",
"Type",
"RevisionDate")
SELECT gen_random_uuid(),
SELECT uuid_in(overlay(overlay(md5(random()::text || ':' || random()::text) placing '4' from 13) placing to_hex(floor(random()*(11-8+1) + 8)::int)::text from 17)::cstring),
"Id" AS "OrganizationId",
"ApiKey",
0 AS "Type",