Skip to content

Commit 7c6b424

Browse files
pineapplemachinedougwilson
authored andcommitted
docs: fix incorrect variables in examples
closes #1638
1 parent 5cf53df commit 7c6b424

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ var pool = mysql.createPool({
319319

320320
pool.query('SELECT 1 + 1 AS solution', function (error, results, fields) {
321321
if (error) throw error;
322-
console.log('The solution is: ', rows[0].solution);
322+
console.log('The solution is: ', results[0].solution);
323323
});
324324
```
325325

@@ -1096,7 +1096,7 @@ connection.query({sql: 'SELECT COUNT(*) AS count FROM big_table', timeout: 60000
10961096
throw error;
10971097
}
10981098

1099-
console.log(rows[0].count + ' rows');
1099+
console.log(results[0].count + ' rows');
11001100
});
11011101
```
11021102

0 commit comments

Comments
 (0)