maria-developers team mailing list archive
-
maria-developers team
-
Mailing list archive
-
Message #10331
Re: [Commits] fb49b98: MDEV-10436 non-deterministic vcol does not force rbr
On 25/01/17 00:33, sachin wrote:
> @@ -5824,6 +5826,16 @@ int THD::decide_logging_format(TABLE_LIST *tables)
> table->table->file->ht)
> multi_access_engine= TRUE;
>
> + /*
> + Loop through each table field if it is virtual field check if it is deterministic
> + or not.
> + */
> + for (field_ptr= table->table->field; *field_ptr; field_ptr++)
> + {
> + field= *field_ptr;
> + if (field->vcol_info && field->vcol_info->flags & VCOL_NOT_STRICTLY_DETERMINISTIC)
> + lex->set_stmt_unsafe(LEX::BINLOG_STMT_UNSAFE_NON_DETER_VCOL);
you could break the loop at this point.
> + }
> prev_access_table= table->table;
> }
>