Skip to content

Commit ddaf0f1

Browse files
1 parent e478470 commit ddaf0f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/innobase/handler/ha_innodb.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*****************************************************************************
22
3-
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All Rights Reserved.
3+
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All Rights Reserved.
44
Copyright (c) 2008, 2009 Google Inc.
55
Copyright (c) 2009, Percona Inc.
66
@@ -9225,8 +9225,10 @@ ha_innobase::start_stmt(
92259225
case SQLCOM_INSERT:
92269226
case SQLCOM_UPDATE:
92279227
case SQLCOM_DELETE:
9228+
case SQLCOM_REPLACE:
92289229
init_table_handle_for_HANDLER();
92299230
prebuilt->select_lock_type = LOCK_X;
9231+
prebuilt->stored_select_lock_type = LOCK_X;
92309232
error = row_lock_table_for_mysql(prebuilt, NULL, 1);
92319233

92329234
if (error != DB_SUCCESS) {

0 commit comments

Comments
 (0)