foxhound 2.0.11 → 2.0.13

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": "foxhound",
3
- "version": "2.0.11",
3
+ "version": "2.0.13",
4
4
  "description": "A Database Query generation library.",
5
5
  "main": "source/FoxHound.js",
6
6
  "scripts": {
@@ -47,9 +47,9 @@
47
47
  },
48
48
  "homepage": "https://github.com/stevenvelozo/foxhound",
49
49
  "devDependencies": {
50
- "quackage": "^1.0.29"
50
+ "quackage": "^1.0.42"
51
51
  },
52
52
  "dependencies": {
53
- "fable": "^3.0.119"
53
+ "fable": "^3.1.18"
54
54
  }
55
- }
55
+ }
@@ -471,12 +471,12 @@ var FoxHoundDialectMSSQL = function(pFable)
471
471
  }
472
472
  }
473
473
 
474
- if (pParameters.query.disableAutoDateStamp &&
475
- tmpSchemaEntry.Type === 'UpdateDate')
476
- {
477
- // This is ignored if flag is set
478
- continue;
479
- }
474
+ // if (pParameters.query.disableAutoDateStamp &&
475
+ // tmpSchemaEntry.Type === 'UpdateDate')
476
+ // {
477
+ // // This is ignored if flag is set
478
+ // continue;
479
+ // }
480
480
  if (pParameters.query.disableAutoUserStamp &&
481
481
  tmpSchemaEntry.Type === 'UpdateIDUser')
482
482
  {
@@ -502,7 +502,17 @@ var FoxHoundDialectMSSQL = function(pFable)
502
502
  {
503
503
  case 'UpdateDate':
504
504
  // This is an autoidentity, so we don't parameterize it and just pass in NULL
505
- tmpUpdate += ' ['+tmpColumn+'] = ' + SQL_NOW;
505
+ if (pParameters.query.disableAutoDateStamp)
506
+ {
507
+ var tmpColumnParameter = 'MANUAL_UpdateDate'
508
+ tmpUpdate += ' ['+tmpColumn+'] = @MANUAL_UpdateDate';
509
+ pParameters.query.parameters[tmpColumnParameter] = tmpRecords[0][tmpColumn];
510
+ generateMSSQLParameterTypeEntry(pParameters, tmpColumnParameter, tmpSchemaEntry);
511
+ }
512
+ else
513
+ {
514
+ tmpUpdate += ' ['+tmpColumn+'] = ' + SQL_NOW;
515
+ }
506
516
  break;
507
517
  case 'UpdateIDUser':
508
518
  // This is the user ID, which we hope is in the query.