summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-04-27 17:25:39 +0300
committerunknown <heikki@hundin.mysql.fi>2003-04-27 17:25:39 +0300
commit0f78cb180743b150e0afe673e9bdc709adb72da3 (patch)
tree696b0fa562cf14871ea3289245bbc6a212eb3822 /sql
parent5c965deec7efdfcc8fb72e6e76aa92e9b75902bf (diff)
downloadmariadb-git-0f78cb180743b150e0afe673e9bdc709adb72da3.tar.gz
trx0trx.h, trx0trx.c, ha_innodb.cc:
Remove code never actually used in IGNORE; InnoDB just rolls back the latest row insert or update on a duplicate key error and leaves it for MySQL to decide whether to ignore the error sql/ha_innodb.cc: Remove code never actually used in IGNORE; InnoDB just rolls back the latest row insert or update on a duplicate key error and leaves it for MySQL to decide whether to ignore the error innobase/trx/trx0trx.c: Remove code never actually used in IGNORE; InnoDB just rolls back the latest row insert or update on a duplicate key error and leaves it for MySQL to decide whether to ignore the error innobase/include/trx0trx.h: Remove code never actually used in IGNORE; InnoDB just rolls back the latest row insert or update on a duplicate key error and leaves it for MySQL to decide whether to ignore the error
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_innodb.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc
index 1363227605e..1ea8b91a978 100644
--- a/sql/ha_innodb.cc
+++ b/sql/ha_innodb.cc
@@ -1911,13 +1911,6 @@ ha_innobase::write_row(
build_template(prebuilt, NULL, table, ROW_MYSQL_WHOLE_ROW);
}
- if (user_thd->lex.sql_command == SQLCOM_INSERT
- && user_thd->lex.duplicates == DUP_IGNORE) {
- prebuilt->trx->ignore_duplicates_in_insert = TRUE;
- } else {
- prebuilt->trx->ignore_duplicates_in_insert = FALSE;
- }
-
srv_conc_enter_innodb(prebuilt->trx);
error = row_insert_for_mysql((byte*) record, prebuilt);
@@ -1958,8 +1951,6 @@ ha_innobase::write_row(
}
}
- prebuilt->trx->ignore_duplicates_in_insert = FALSE;
-
error = convert_error_code_to_mysql(error, user_thd);
/* Tell InnoDB server that there might be work for