Commit 589344df authored by unknown's avatar unknown

Merge jlindstrom@bk-internal.mysql.com:/home/bk/mysql-4.1

into hundin.mysql.fi:/home/jan/mysql-4.1
parents 93437768 328ec8fb
...@@ -5666,7 +5666,7 @@ prototype for this function ! */ ...@@ -5666,7 +5666,7 @@ prototype for this function ! */
ibool ibool
innobase_query_is_update(void) innobase_query_is_update(void)
/*===========================*/ /*==========================*/
{ {
THD* thd; THD* thd;
...@@ -5676,15 +5676,15 @@ innobase_query_is_update(void) ...@@ -5676,15 +5676,15 @@ innobase_query_is_update(void)
thd->lex->sql_command == SQLCOM_REPLACE_SELECT || thd->lex->sql_command == SQLCOM_REPLACE_SELECT ||
( thd->lex->sql_command == SQLCOM_LOAD && ( thd->lex->sql_command == SQLCOM_LOAD &&
thd->lex->duplicates == DUP_REPLACE )) { thd->lex->duplicates == DUP_REPLACE )) {
return true; return(1);
} }
if ( thd->lex->sql_command == SQLCOM_INSERT && if ( thd->lex->sql_command == SQLCOM_INSERT &&
thd->lex->duplicates == DUP_UPDATE ) { thd->lex->duplicates == DUP_UPDATE ) {
return true; return(1);
} }
return false; return(0);
} }
} }
......
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