Merge pull request #150 from TennyZhuang/patch-2

Refine example in README.md
This commit is contained in:
mrks 2020-06-04 11:28:27 +02:00 committed by GitHub
commit de657e7057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) { if (result.isValid() && result.size() > 0) {
const hsql::SQLStatement* statement = result.getStatement(0); const hsql::SQLStatement* statement = result.getStatement(0);
if (statement.isType(hsql::SelectStatement)) { if (statement->isType(hsql::kStmtSelect)) {
const hsql::SelectStatement* select = (const hsql::SelectStatement*) statement; const auto* select = static_cast<const hsql::SelectStatement*> statement;
/* ... */ /* ... */
} }
} }