Skip to content

Commit

Permalink
chore: polishing examples
Browse files Browse the repository at this point in the history
  • Loading branch information
wellwelwel committed Jul 8, 2023
1 parent e99533c commit b6b32b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions documentation/en/TypeScript-Examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ conn.query<ResultSetHeader>(sql, (_err, result) => {
#### ResultSetHeader[]
> Needs to be fixed ⚠️

For multiples `INSERT`, `UPDATE`, `DELETE`, `TRUNCATE`, etc. when using `multipleStatements`
For multiples `INSERT`, `UPDATE`, `DELETE`, `TRUNCATE`, etc. when using `multipleStatements` as `true`

```ts
import mysql, { ResultSetHeader } from 'mysql2';
Expand All @@ -204,10 +204,10 @@ const sql = `
SET @2 = 2;
`;
conn.query<ResultSetHeader[]>(sql, (_err, result) => {
console.log(result);
conn.query<ResultSetHeader[]>(sql, (_err, results) => {
console.log(results);
/**
* @result: [
* @results: [
ResultSetHeader {
fieldCount: 0,
affectedRows: 0,
Expand Down

0 comments on commit b6b32b5

Please sign in to comment.