diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-07-21 13:17:49 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-07-21 13:17:49 +0300 |
commit | 8f09b7053b16f4fe1458012a4367b883d5933b1e (patch) | |
tree | c23b9fc53439c77a83657d3ff95a0b24a5232d2c /innobase | |
parent | 81a75051de3ab8c763913c058ad72a853d7d2afb (diff) | |
download | mariadb-git-8f09b7053b16f4fe1458012a4367b883d5933b1e.tar.gz |
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
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/row/row0ins.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/innobase/row/row0ins.c b/innobase/row/row0ins.c index 5badebf2011..1f0d0f40114 100644 --- a/innobase/row/row0ins.c +++ b/innobase/row/row0ins.c @@ -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 |