Function to generate unique condition for specified row.
public static getUniqueCondition ( resource $handle, integer $fields_cnt, array $fields_meta, array $row, boolean $force_unique = false, string | boolean $restrict_to_table = false, array $analyzed_sql_results = null ) : array | ||
$handle | resource | current query result |
$fields_cnt | integer | number of fields |
$fields_meta | array | meta information about fields |
$row | array | current row |
$force_unique | boolean | generate condition only on pk or unique |
$restrict_to_table | string | boolean | restrict the unique condition to this table or false if none |
$analyzed_sql_results | array | the analyzed query |
return | array | the calculated condition and whether condition is unique |