query errors passed to a query callback function are considered handled

This commit is contained in:
Brian Carlson 2010-12-16 23:50:36 -06:00
parent 9281ff9860
commit 55f84924f2

View File

@ -74,8 +74,9 @@ p.submit = function(connection) {
if(self.callback) {
self.callback(err);
connection.removeListener('commandComplete', onCommandComplete);
} else {
self.emit('error', err);
}
self.emit('error', err);
self.emit('end');
};
@ -178,7 +179,7 @@ var dateParser = function(isoDate) {
var end = splitTime[2];
var seconds = /(\d{2})/.exec(end);
seconds = (seconds ? seconds[1] : 0);
seconds = parseInt(seconds,10);
seconds = parseInt(seconds,10);
var mili = /\.(\d{1,})/.exec(end);
mili = mili ? mili[1].slice(0,3) : 0;
var tZone = /([Z|+\-])(\d{2})?(\d{2})?/.exec(end);