SqlParser.parseString

Parses sql and creates a #GdaStatement statement from the first SQL statement contained in sql: if sql contains more than one statement, then the remaining part of the string is not parsed at all, and remain (if not null) will point at the first non parsed character.

To include variables in the sql string, see the <link linkend="GdaSqlParser.description">GdaSqlParser's object description</link>.

class SqlParser
parseString
(
string sql
,
out string remain
)

Parameters

sql string

the SQL string to parse

remain string

location to store a pointer to remaining part of sql in case sql has multiple statement, or null

Return Value

Type: gda.statement.Statement

a new #GdaStatement object, or null if an error occurred

Throws