Skip to content

Commit 4d0d555

Browse files
Removed transactions from TODO list
1 parent c0482e2 commit 4d0d555

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Readme.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ pool.getConnection(function(err, connection) {
718718
connection.query('INSERT INTO posts SET title=?', title, function(err, result) {
719719
if (err) {
720720
connection.release();
721-
throw err;
721+
throw err;
722722
}
723723

724724
var log = 'Post ' + result.insertId + ' added';
@@ -730,8 +730,8 @@ pool.getConnection(function(err, connection) {
730730
}
731731
connection.commit(function(err) {
732732
if (err) {
733-
connection.release();
734-
throw err;
733+
connection.release();
734+
throw err;
735735
}
736736
console.log('success!');
737737
});
@@ -1019,4 +1019,3 @@ For example, if you have an installation of mysql running on localhost:3306 and
10191019
* Prepared statements
10201020
* setTimeout() for Connection / Query
10211021
* Support for encodings other than UTF-8 / ASCII
1022-
* API support for transactions, similar to [php](http://www.php.net/manual/en/mysqli.quickstart.transactions.php)

0 commit comments

Comments
 (0)