Skip to content

Commit

Permalink
Modified last-insert-id test so it supports mssql
Browse files Browse the repository at this point in the history
Now it handles mssql adapter the same way as postgres adapter, i.e., it
informs that adapter does not support last inert id and skips the test.
  • Loading branch information
Hypermediaisobar-admin committed Sep 16, 2014
1 parent 1744c83 commit 4bd5bcb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/last-insert-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ require('../test')("Last insert id", function (conn, t) {
t.skip("Last insert ID not supported by postgres")
return t.end()
}
if (conn.adapter.name == 'mssql') {
t.skip("Last insert ID not supported by mssql")
return t.end()
}
t.plan(2)

conn.query("DROP TABLE last_insert_id_test", function (err) {})
Expand Down

0 comments on commit 4bd5bcb

Please sign in to comment.