Skip to content

Commit c4efadf

Browse files
Merge pull request #550 from MauricioFauth/stmt-info
Create the StatementInfo class
2 parents 0e24506 + 2de0fdc commit c4efadf

File tree

6 files changed

+447
-518
lines changed

6 files changed

+447
-518
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ $query = 'OPTIMIZE TABLE tbl';
7272
$parser = new Parser($query);
7373
$flags = Query::getFlags($parser->statements[0]);
7474

75-
echo $flags['querytype'];
75+
echo $flags->queryType?->value;
7676
```
7777

7878
### Parsing and building SQL query

0 commit comments

Comments
 (0)