Statement.toSqlExtended

Renders stmt as an SQL statement, with some control on how it is rendered.

If cnc is not null, then the rendered SQL will better be suited to be used by cnc (in particular it may include some SQL tweaks and/or proprietary extensions specific to the database engine used by cnc): in this case the result is similar to calling gda.connection.Connection.statementToSql.

Parameters

cnc gda.connection.Connection

a #GdaConnection object, or null

params gda.set.Set

parameters contained in a single #GdaSet object, or null

flags gda.types.StatementSqlFlag

a set of flags to control the rendering

paramsUsed gda.holder.Holder[]

a place to store the list of actual #GdaHolder objects in params used to do the rendering, or null

Return Value

Type: string

a new string if no error occurred

Throws