public class TSqlCmdsExasol extends TSqlCmdsMssql
Exasol shares the MSSQL lexer/parser (see TGSqlParser delegation), so
T-SQL statement recognition is inherited from TSqlCmdsMssql.
Exasol-specific administrative commands (EXPORT, IMPORT, CREATE CONNECTION,
COMMENT ON, ALTER SESSION/SYSTEM, ...) are recognized here by first-token
text so they work even though those words are plain identifiers in
the MSSQL lexer. Matched statements are routed to
TUnknownSqlStatement with a dedicated statement type: split and
typed, consumed as a raw token stream without invoking the yacc parser —
the same route TSqlCmdsSybase uses for Sybase IQ administrative commands.
gnewsqlstatementtype, initialized, initLock, sqlCmdList, vendor| Constructor and Description |
|---|
TSqlCmdsExasol() |
| Modifier and Type | Method and Description |
|---|---|
TCustomSqlStatement |
issql(TSourceToken token,
EFindSqlStateType state,
TCustomSqlStatement currentStatement)
Identifies the SQL statement type from a token stream.
|
getStatementTypeForToken, getToken1Str, initializeCommands, setVendoraddCmd, addCmd, addCmd, addCmd, addCmd, addCmd, addCmd, addCmd, ensureInitialized, findcte, findCteByStructure, finddbcmd, getSqlCmdList, getVendor, overrideCmdpublic TSqlCmdsExasol()
public TCustomSqlStatement issql(TSourceToken token, EFindSqlStateType state, TCustomSqlStatement currentStatement)
ISqlCmdsissql in interface ISqlCmdsissql in class TSqlCmdsMssqltoken - Current token being analyzedstate - Current parsing state (start, in body, or in exception)currentStatement - Current statement being built (may be modified)