Pass tagged OK text code as the last argument of the callback (for APPENDUID, COPYUID, etc.)

fork
Chotiwat Chawannakul 11 years ago
parent f139ce9842
commit 0f09bfdea6

@ -1359,6 +1359,7 @@ Connection.prototype._resTagged = function(info) {
}); });
} else { } else {
req.cbargs.unshift(err); req.cbargs.unshift(err);
req.cbargs.push(info.textCode);
req.cb && req.cb.apply(this, req.cbargs); req.cb && req.cb.apply(this, req.cbargs);
} }

@ -300,7 +300,7 @@ function parseTextCode(text, literals) {
if (r.length === 1) if (r.length === 1)
return r[0]; return r[0];
else else
return { key: r[0], val: r[1] }; return { key: r[0], val: r.length === 2 ? r[1] : r.slice(1) };
} }
function parseESearch(text, literals) { function parseESearch(text, literals) {

Loading…
Cancel
Save