compute_unique_table_row_condition_with_cnc


Description:


[ Version ( since = "4.0.3" ) ]
public SqlExpr? compute_unique_table_row_condition_with_cnc (Connection? cnc, SqlStatementSelect stsel, MetaTable mtable, bool require_pk) throws Error

Computes a SqlExpr expression which can be used in the WHERE clause of an UPDATE or DELETE statement when a row from the result of the stsel statement has to be modified.

If require_pk is true then this function will return a non null SqlExpr only if it can use a primary key of mtable. If require_pk is false, then it will try to use a primary key of mtable, and if none is available, it will use all the columns of mtable to compute a condition statement.

Parameters:

cnc

a Connection, or null

stsel

a GdaSqlSelectStatement

mtable

a MetaTable

require_pk

set to true if a primary key is required

Returns:

a new SqlExpr, or null if an error occurred.


Namespace: Gda
Package: libgda-6.0