You are here: Symbol Reference > Classes > TCustomGSqlParser Class > public > Parse Method
ContentsIndexHome
PreviousUpNext
TCustomGSqlParser.Parse Method
Pascal
function Parse: Integer;
Return Values
Return Values 
Description 
Successfuly, no error found. 
<> 0 
Failed, there are syntax errors. 
Description

 

Check syntax of input sql, and collect database objects in sql. 

All sql statements will be available in SqlStatements property represented by classes descend from TCustomSqlStatement even if there are syntax errors in input sql. 

 

Return value <> 0 indicates that there are syntax errors in sql. You can check error information with ErrorCount, ErrorMessages and SyntaxErrors property. 

 

Gudu software http://www.sqlparser.com
Send comments about this topic.