meadow-connection-mysql 1.0.18 → 1.0.19

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-mysql",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Meadow MySQL Plugin",
5
5
  "main": "source/Meadow-Connection-MySQL.js",
6
6
  "scripts": {
@@ -64,11 +64,13 @@ class MeadowSchemaMySQL 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 often exceed
69
+ // that. Wider default avoids silent truncation.
70
+ let tmpSize = tmpColumn.hasOwnProperty('Size') ? tmpColumn.Size : 255;
68
71
  if (isNaN(tmpSize))
69
72
  {
70
- // Use the old default if Size is improper
71
- tmpSize = 36;
73
+ tmpSize = 255;
72
74
  }
73
75
  tmpCreateTableStatement += ` ${tmpColumn.Column} CHAR(${tmpSize}) DEFAULT '0xDe'`;
74
76
  break;