Skip to content

Commit

Permalink
Improve awkward binding behaviour with Statement#bindArray.
Browse files Browse the repository at this point in the history
  • Loading branch information
orlandov committed Jul 13, 2010
1 parent f89fa7e commit 2710687
Show file tree
Hide file tree
Showing 3 changed files with 287 additions and 52 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -29,13 +29,13 @@ additional steps.
// bindings list is optional

var ponies = [];

db.query(sql, [colour], function (pony) {
if (!pony) {
// no more ponies
if (!ponies.length)
sys.puts('There are no ponies with ' + colour + ' tails. :(');
else
else
sys.puts('The following ponies have ' + colour + ' tails: ' + ponies.join(', '));
}
sys.puts(sys.inspect(pony));
Expand Down Expand Up @@ -88,7 +88,7 @@ from the API have been made to improve performance.
});
});
});


DESCRIPTION
-----------
Expand Down

0 comments on commit 2710687

Please sign in to comment.