orchid-orm 1.49.4 → 1.49.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -472,8 +472,8 @@ JOIN pg_type AS t ON t.oid = casttarget`);
472
472
  }
473
473
  typeCastsCache.value = typeCasts;
474
474
  }
475
- const dbBaseType = dbColumn instanceof pqb.DomainColumn ? domainsMap[dbColumn.dataType]?.dataType : dbType;
476
- const codeBaseType = codeColumn instanceof pqb.DomainColumn ? domainsMap[codeColumn.dataType]?.dataType : codeType;
475
+ const dbBaseType = pqb.getColumnBaseType(dbColumn, domainsMap, dbType);
476
+ const codeBaseType = pqb.getColumnBaseType(codeColumn, domainsMap, codeType);
477
477
  if (!typeCasts.get(dbBaseType)?.has(codeBaseType)) {
478
478
  if (!(dbColumn instanceof pqb.EnumColumn) || !(codeColumn instanceof pqb.EnumColumn) || !orchidCore.deepCompare(dbColumn.options, codeColumn.options)) {
479
479
  if (verifying) throw new AbortSignal();