File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -444,9 +444,9 @@ typedef enum mysqlx_view_check_option_enum
444
444
*/
445
445
typedef enum mysqlx_row_locking_enum
446
446
{
447
- LOCK_NONE = 0 , /**< No locking */
448
- LOCK_SHARED = 1 , /**< Locking in Shared mode */
449
- LOCK_EXCLUSIVE = 2 /**< Locking in Exclusive mode */
447
+ ROW_LOCK_NONE = 0 , /**< No locking */
448
+ ROW_LOCK_SHARED = 1 , /**< Locking in Shared mode */
449
+ ROW_LOCK_EXCLUSIVE = 2 /**< Locking in Exclusive mode */
450
450
} mysqlx_row_locking_t ;
451
451
452
452
/*
Original file line number Diff line number Diff line change @@ -876,13 +876,13 @@ void mysqlx_stmt_t::set_row_locking(mysqlx_row_locking_t row_locking)
876
876
case OP_FIND:
877
877
switch (row_locking)
878
878
{
879
- case LOCK_NONE :
879
+ case ROW_LOCK_NONE :
880
880
m_row_locking = cdk::Lock_mode_value::NONE;
881
881
break ;
882
- case LOCK_SHARED :
882
+ case ROW_LOCK_SHARED :
883
883
m_row_locking = cdk::Lock_mode_value::SHARED;
884
884
break ;
885
- case LOCK_EXCLUSIVE :
885
+ case ROW_LOCK_EXCLUSIVE :
886
886
m_row_locking = cdk::Lock_mode_value::EXCLUSIVE;
887
887
break ;
888
888
default :
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ TEST_F(xapi, test_row_locking)
70
70
71
71
EXPECT_EQ (RESULT_OK, mysqlx_transaction_begin (get_session ()));
72
72
stmt = mysqlx_table_select_new (table);
73
- EXPECT_EQ (RESULT_OK, mysqlx_set_select_row_locking (stmt, LOCK_EXCLUSIVE ));
73
+ EXPECT_EQ (RESULT_OK, mysqlx_set_select_row_locking (stmt, ROW_LOCK_EXCLUSIVE ));
74
74
CRUD_CHECK (res = mysqlx_execute (stmt), stmt);
75
75
76
76
printf (" \n Rows data:" );
You can’t perform that action at this time.
0 commit comments