Bug in generateIdentifierType function
sherazahmedch opened this issue · 1 comments
sherazahmedch commented
The above mentioned line of code is wrong. It should be as follows:
imports.push(...innerType.typeImports);
In the absence of above mentioned correction only primitive types will work correctly with primary keys. But If I have a UUID as my primary key then the following configuration will fail:
"pg_catalog.uuid": {
name: "UUID",
typeImports: [
{
name: "UUID",
path: "crypto",
isAbsolute: true,
isDefault: false,
importAsType: true,
},
],
},
kristiandupont commented
Thank you for this, nice catch! I've published a new version with the fix.