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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meadow-connection-postgresql",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Meadow PostgreSQL Connection Plugin",
5
5
  "main": "source/Meadow-Connection-PostgreSQL.js",
6
6
  "scripts": {
@@ -64,11 +64,15 @@ class MeadowSchemaPostgreSQL extends libFableServiceProviderBase
64
64
  tmpPrimaryKey = tmpColumn.Column;
65
65
  break;
66
66
  case 'GUID':
67
- let tmpSize = tmpColumn.hasOwnProperty('Size') ? tmpColumn.Size : 36;
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
- // Use the old default if Size is improper
71
- tmpSize = 36;
75
+ tmpSize = 255;
72
76
  }
73
77
  tmpCreateTableStatement += ` "${tmpColumn.Column}" VARCHAR(${tmpSize}) DEFAULT '0xDe'`;
74
78
  break;