Open timvandam opened 9 months ago
Describe the bug Variables inside of DO blocks (psql) are not detected, but it does compile just fine.
Expected behavior It should give the correct type for the query by detecting the variable
Test case
/* @name createNamedSequenceIfNotExists */ DO LANGUAGE plpgsql $$ BEGIN EXECUTE FORMAT('CREATE SEQUENCE IF NOT EXISTS %I', :sequenceName!); END; $$;
It generates the type
export type ICreateNamedSequenceIfNotExistsParams = void;
Describe the bug Variables inside of DO blocks (psql) are not detected, but it does compile just fine.
Expected behavior It should give the correct type for the query by detecting the variable
Test case
It generates the type