meadow-connection-postgresql 1.0.4 → 1.0.5
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.
package/package.json
CHANGED
|
@@ -64,11 +64,15 @@ class MeadowSchemaPostgreSQL extends libFableServiceProviderBase
|
|
|
64
64
|
tmpPrimaryKey = tmpColumn.Column;
|
|
65
65
|
break;
|
|
66
66
|
case 'GUID':
|
|
67
|
-
|
|
67
|
+
// Default GUID column width is 255 — UUIDs need 36 but
|
|
68
|
+
// composite GUIDs from integration adapters (meadow-
|
|
69
|
+
// integration's prefix + entity + external GUID) often
|
|
70
|
+
// exceed 36. Wider default avoids silent truncation
|
|
71
|
+
// when the descriptor doesn't pin a Size.
|
|
72
|
+
let tmpSize = tmpColumn.hasOwnProperty('Size') ? tmpColumn.Size : 255;
|
|
68
73
|
if (isNaN(tmpSize))
|
|
69
74
|
{
|
|
70
|
-
|
|
71
|
-
tmpSize = 36;
|
|
75
|
+
tmpSize = 255;
|
|
72
76
|
}
|
|
73
77
|
tmpCreateTableStatement += ` "${tmpColumn.Column}" VARCHAR(${tmpSize}) DEFAULT '0xDe'`;
|
|
74
78
|
break;
|