Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: brianc/node-postgres
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: ngervasi/node-postgres
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Mar 30, 2015

  1. Fix for issue 750: #750

    ngervasi committed Mar 30, 2015
    Copy the full SHA
    3c3208a View commit details

Commits on Mar 31, 2015

  1. Tests for issue 750

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    6f4921b View commit details
  2. testing

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    ba80236 View commit details
  3. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    d7e88a3 View commit details
  4. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    c86214d View commit details
  5. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    b58362f View commit details
  6. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    c6050d0 View commit details
  7. tests update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    8142771 View commit details
  8. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    6a798bc View commit details
  9. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    ab09b1b View commit details
  10. again...

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    65a8b3e View commit details
  11. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    0ad20a6 View commit details
  12. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    ea42694 View commit details
  13. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    0621d29 View commit details
  14. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    1a2575b View commit details
  15. test

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    1acf366 View commit details
  16. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    5cbab7c View commit details
  17. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    570b444 View commit details
  18. update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    4fde4c9 View commit details
  19. update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    cbca457 View commit details
  20. update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    fb89883 View commit details
  21. Query arguments tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    cbf2e51 View commit details
  22. test update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    0bfb3b6 View commit details
  23. test fix

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    c58e083 View commit details
  24. new test

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    b248239 View commit details
  25. test name update

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    b42ad00 View commit details
  26. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    0000591 View commit details
  27. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    d4fce58 View commit details
  28. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    e703826 View commit details
  29. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    2799cca View commit details
  30. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    0ceda5f View commit details
  31. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    8a868f4 View commit details
  32. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    2aba95e View commit details
  33. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    ca62ae3 View commit details
  34. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    ed204e7 View commit details
  35. tests

    ngervasi committed Mar 31, 2015
    Copy the full SHA
    d51db34 View commit details
Showing with 21 additions and 0 deletions.
  1. +21 −0 test/integration/client/query-args-tests.js
21 changes: 21 additions & 0 deletions test/integration/client/query-args-tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
var helper = require(__dirname + '/test-helper');
var pg = helper.pg;
var config = helper.config;

test('check that passed values types have not been changed during the query phase', function() {

pg.connect(config, assert.success(function(client, done) {
var originalValues = [1,2];
var values = originalValues.slice();

client.query('SELECT 1 WHERE 0 <> $1 AND 0 <> $2',values, function(result) {
console.log('result:',result);
assert.equal(result.rowCount, 1);
assert.equal(values.length,originalValues.length,'expecting same length as given array!');
assert.strictEqual(isNaN(values[0]),false,'expecting a number!');
assert.strictEqual(isNaN(values[1]),false,'expecting a number!');
done();
});

}));
});