{"action":"opened","issue":{"url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/67","labels_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/67/comments","events_url":"https://api.github.com/repos/vitaly-t/pg-promise/issues/67/events","html_url":"https://github.com/vitaly-t/pg-promise/issues/67","id":118304311,"number":67,"title":"Query is returning true even when it should return false","user":{"login":"JaxCavalera","id":15429762,"avatar_url":"https://avatars.githubusercontent.com/u/15429762?v=3","gravatar_id":"","url":"https://api.github.com/users/JaxCavalera","html_url":"https://github.com/JaxCavalera","followers_url":"https://api.github.com/users/JaxCavalera/followers","following_url":"https://api.github.com/users/JaxCavalera/following{/other_user}","gists_url":"https://api.github.com/users/JaxCavalera/gists{/gist_id}","starred_url":"https://api.github.com/users/JaxCavalera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JaxCavalera/subscriptions","organizations_url":"https://api.github.com/users/JaxCavalera/orgs","repos_url":"https://api.github.com/users/JaxCavalera/repos","events_url":"https://api.github.com/users/JaxCavalera/events{/privacy}","received_events_url":"https://api.github.com/users/JaxCavalera/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-23T01:34:45Z","updated_at":"2015-11-23T01:34:45Z","closed_at":null,"body":"My database structure is setup so that  when I run the following query in pgAdmin3 it returns the only row in my users table : ```SELECT * FROM users WHERE username = 'jax';```\r\n\r\nhowever when i try to run the following through pg-promise it tells me that the username is available regardless of what I set the value for 'uname' to : ```export function regAble(uname) {\r\n    db.query('SELECT username FROM users WHERE username = $1', uname)\r\n    .then(function() {\r\n        console.log('Username is Available' + uname);\r\n        return true;\r\n    })\r\n    .catch(function(error) {\r\n        console.log('Choose a New Username or Login', error);\r\n        return false;\r\n    });\r\n}```\r\n\r\nI don't understand how that's possible.\r\n"}}