Commit 8f09b705 authored by unknown's avatar unknown

row0ins.c:

  Move the assertion in foreign keys to the right place


innobase/row/row0ins.c:
  Move the assertion in foreign keys to the right place
parent 81a75051
...@@ -389,10 +389,11 @@ row_ins_foreign_delete_or_set_null( ...@@ -389,10 +389,11 @@ row_ins_foreign_delete_or_set_null(
char err_buf[1000]; char err_buf[1000];
ut_a(thr && foreign && pcur && mtr); ut_a(thr && foreign && pcur && mtr);
ut_a(que_node_get_type(node) == QUE_NODE_UPDATE);
node = thr->run_node; node = thr->run_node;
ut_a(que_node_get_type(node) == QUE_NODE_UPDATE);
if (!node->is_delete) { if (!node->is_delete) {
/* According to SQL-92 an UPDATE with respect to FOREIGN /* According to SQL-92 an UPDATE with respect to FOREIGN
KEY constraints is not semantically equivalent to a KEY constraints is not semantically equivalent to a
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment