foxhound 1.0.39 → 1.0.40

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": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "A Database Query generation library.",
5
5
  "main": "source/FoxHound.js",
6
6
  "scripts": {
@@ -828,7 +828,7 @@ var FoxHoundDialectALASQL = function()
828
828
  {
829
829
  var tmpTableName = generateTableName(pParameters);
830
830
  let tmpDeleteTrackingState = pParameters.query.disableDeleteTracking;
831
- pParameters.query.disableDeleteTracking = false;
831
+ pParameters.query.disableDeleteTracking = true;
832
832
  var tmpWhere = generateWhere(pParameters);
833
833
  var tmpUpdateUndeleteSetters = generateUpdateUndeleteSetters(pParameters);
834
834
  pParameters.query.disableDeleteTracking = tmpDeleteTrackingState;
@@ -873,7 +873,7 @@ var FoxHoundDialectMySQL = function()
873
873
  var tmpTableName = generateTableName(pParameters);
874
874
  // TODO: Fix these
875
875
  let tmpDeleteTrackingState = pParameters.query.disableDeleteTracking;
876
- pParameters.query.disableDeleteTracking = false;
876
+ pParameters.query.disableDeleteTracking = true;
877
877
  var tmpWhere = generateWhere(pParameters);
878
878
  var tmpUpdateUndeleteSetters = generateUpdateUndeleteSetters(pParameters);
879
879
  pParameters.query.disableDeleteTracking = tmpDeleteTrackingState;
@@ -675,7 +675,7 @@ suite
675
675
  // This is the query generated by the ALASQL dialect
676
676
  libFable.log.trace('Undelete Query', tmpQuery.query);
677
677
  Expect(tmpQuery.query.body)
678
- .to.equal('UPDATE Animal SET `UpdateDate` = NOW(), `UpdatingIDUser` = :UpdatingIDUser_1, `Deleted` = 0 WHERE `IDAnimal` = :IDAnimal_w0 AND `Deleted` = :Deleted_w1;');
678
+ .to.equal('UPDATE Animal SET `UpdateDate` = NOW(), `UpdatingIDUser` = :UpdatingIDUser_1, `Deleted` = 0 WHERE `IDAnimal` = :IDAnimal_w0;');
679
679
  }
680
680
  );
681
681
  test
@@ -789,7 +789,7 @@ suite
789
789
  // This is the query generated by the MySQL dialect
790
790
  libFable.log.trace('Undelete Query', tmpQuery.query);
791
791
  Expect(tmpQuery.query.body)
792
- .to.equal('UPDATE `Animal` SET UpdateDate = NOW(3), UpdatingIDUser = :UpdatingIDUser_1, Deleted = 0 WHERE IDAnimal = :IDAnimal_w0 AND `Animal`.Deleted = :Deleted_w1;');
792
+ .to.equal('UPDATE `Animal` SET UpdateDate = NOW(3), UpdatingIDUser = :UpdatingIDUser_1, Deleted = 0 WHERE IDAnimal = :IDAnimal_w0;');
793
793
  }
794
794
  );
795
795
  test