node-ibm_db: test-issue253 is failing

I am seeing a failure after v2.1.0 release:

Running test for [DB2] : test-issue253 ... fail  
 Stdout:  

 Stderr:  

assert.js:81
  throw new assert.AssertionError({
  ^
AssertionError: '[IBM][CLI Driver][DB2/AIX64] SQL0180N  The syntax of the string representation of a datetime value is incorrect.  SQLSTATE=2200 == '[IBM][CLI Driver][DB2/LINUXX8664] SQL0180N  The syntax of the string representation of a datetime value is incorrect.  SQLSTATE
    at /home/alk/tmp/node-ibm_db/test/test-issue253.js:24:20
    at /home/alk/tmp/node-ibm_db/lib/odbc.js:367:61
Useful Links:

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (10 by maintainers)

Commits related to this issue

Most upvoted comments

@al-k21 This test case fails only if target database server is other than DB2/LINUXX8664. You can ignore this failure as of now. It is only test case issue not a bug. I think @rhtpandeyIN will correct the test file. Thanks.

@gibfahn ,

Maybe remove it from the error test rather than from the error itself.

I think I didn’t explain it well before, sorry for the confusion. What I meant was, while checking the error content in the test case (at the time of assertion) I will not check the driver specific part, as this test case do not depends on any driver specific situations hence error will be generic and same for all (and I am not going to change error returned by the driver). This test case is failing because of “name/platform-name of the driver” not because of the error message or error code. To be very specific it’s just a test case assertion change not the driver related or code related changes. I hope now I am clear. Thanks.