Commit f753fdd3 authored by heikki@hundin.mysql.fi's avatar heikki@hundin.mysql.fi
Browse files

row0ins.c:

  Move the assertion in foreign keys to the right place
parent 3c29c489
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -389,10 +389,11 @@ row_ins_foreign_delete_or_set_null(
	char		err_buf[1000];
	
	ut_a(thr && foreign && pcur && mtr);
	ut_a(que_node_get_type(node) == QUE_NODE_UPDATE);

	node = thr->run_node;

	ut_a(que_node_get_type(node) == QUE_NODE_UPDATE);

	if (!node->is_delete) {
	        /* According to SQL-92 an UPDATE with respect to FOREIGN
	        KEY constraints is not semantically equivalent to a