refine example in README.md
Signed-off-by: TennyZhuang <zty0826@gmail.com>
This commit is contained in:
parent
2dfaa2b672
commit
a18f03e0bc
|
@ -40,8 +40,8 @@ To use the SQL parser in your own projects you simply have to follow these few s
|
|||
if (result.isValid() && result.size() > 0) {
|
||||
const hsql::SQLStatement* statement = result.getStatement(0);
|
||||
|
||||
if (statement.isType(hsql::SelectStatement)) {
|
||||
const hsql::SelectStatement* select = (const hsql::SelectStatement*) statement;
|
||||
if (statement->isType(hsql::kSelectStmt)) {
|
||||
const auto* select = static_cast<const hsql::SelectStatement*> statement;
|
||||
/* ... */
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue