diff --git a/query_classifier/qc_sqlite/qc_sqlite.cc b/query_classifier/qc_sqlite/qc_sqlite.cc index 55755d515..b993c8361 100644 --- a/query_classifier/qc_sqlite/qc_sqlite.cc +++ b/query_classifier/qc_sqlite/qc_sqlite.cc @@ -3282,7 +3282,7 @@ extern void maxscale_update_function_info(const char* name, const Expr* pExpr); // 'unsigned int' and not 'uint32_t' because 'uint32_t' is unknown in sqlite3 context. extern void maxscale_set_type_mask(unsigned int type_mask); -extern void maxscaleComment(); +extern int maxscaleComment(); extern int maxscaleKeyword(int token); extern int maxscaleTranslateKeyword(int token); @@ -4080,14 +4080,18 @@ void maxscaleCreateSequence(Parse* pParse, Token* pDatabase, Token* pTable) QC_EXCEPTION_GUARD(pInfo->maxscaleCreateSequence(pParse, pDatabase, pTable)); } -void maxscaleComment() +int maxscaleComment() { QC_TRACE(); QcSqliteInfo* pInfo = this_thread.pInfo; ss_dassert(pInfo); - QC_EXCEPTION_GUARD(pInfo->maxscaleComment()); + int rc = 0; + + QC_EXCEPTION_GUARD(rc = pInfo->maxscaleComment()); + + return rc; } void maxscaleDeclare(Parse* pParse)