Details
-
Task
-
Resolution: Fixed
-
Major
-
2.1.5
-
None
-
None
Description
var couchbase = require('couchbase');
|
var N1qlQuery = couchbase.N1qlQuery;
|
|
var bucket = (new couchbase.Cluster('couchbase://localhost')).openBucket('travel-saddmple',
|
function(err) {
|
console.error('Got error %j', err);
|
});
|
|
var q = N1qlQuery.fromString('SELECT * FROM `travel-sample` LIMIT 10');
|
var req = bucket.query(q);
|
req.on('row', function(row) {
|
console.log('Got a row');
|
});
|
req.on('error', function(err) {
|
console.error('Got error %j', err);
|
});
|
req.on('end', function(meta) {
|
console.log('All rows received. Metadata is %j:', meta);
|
});
|
Output is:
/Users/mnunberg/Source/node-dev/node_modules/couchbase/lib/bucket.js:189
|
itm[1][itm[1].length-1](err, null);
|
^
|
|
TypeError: itm[1][(itm[1].length - 1)] is not a function
|
at Bucket.<anonymous> (/Users/mnunberg/Source/node-dev/node_modules/couchbase/lib/bucket.js:189:30)
|
at emitOne (events.js:82:20)
|
at Bucket.emit (events.js:169:7)
|
at Bucket.<anonymous> (/Users/mnunberg/Source/node-dev/node_modules/couchbase/lib/bucket.js:172:19)
|