Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dc0f210a
Commit
dc0f210a
authored
Feb 04, 2009
by
Chad MILLER
Browse files
Options
Browse Files
Download
Plain Diff
Merge from team tree.
parents
078e413e
0f577611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+6
-4
No files found.
storage/innobase/handler/ha_innodb.cc
View file @
dc0f210a
...
@@ -3577,7 +3577,8 @@ ha_innobase::write_row(
...
@@ -3577,7 +3577,8 @@ ha_innobase::write_row(
/* out: error code */
/* out: error code */
uchar
*
record
)
/* in: a row in MySQL format */
uchar
*
record
)
/* in: a row in MySQL format */
{
{
int
error
=
0
;
ulint
error
=
0
;
int
error_result
=
0
;
ibool
auto_inc_used
=
FALSE
;
ibool
auto_inc_used
=
FALSE
;
ulint
sql_command
;
ulint
sql_command
;
trx_t
*
trx
=
thd_to_trx
(
user_thd
);
trx_t
*
trx
=
thd_to_trx
(
user_thd
);
...
@@ -3693,6 +3694,7 @@ no_commit:
...
@@ -3693,6 +3694,7 @@ no_commit:
}
}
/* MySQL errors are passed straight back. */
/* MySQL errors are passed straight back. */
error_result
=
(
int
)
error
;
goto
func_exit
;
goto
func_exit
;
}
}
...
@@ -3786,7 +3788,7 @@ set_max_autoinc:
...
@@ -3786,7 +3788,7 @@ set_max_autoinc:
err
=
innobase_set_max_autoinc
(
auto_inc
);
err
=
innobase_set_max_autoinc
(
auto_inc
);
if
(
err
!=
DB_SUCCESS
)
{
if
(
err
!=
DB_SUCCESS
)
{
error
=
(
int
)
err
;
error
=
err
;
}
}
}
}
break
;
break
;
...
@@ -3796,12 +3798,12 @@ set_max_autoinc:
...
@@ -3796,12 +3798,12 @@ set_max_autoinc:
innodb_srv_conc_exit_innodb
(
prebuilt
->
trx
);
innodb_srv_conc_exit_innodb
(
prebuilt
->
trx
);
report_error:
report_error:
error
=
convert_error_code_to_mysql
(
error
,
user_thd
);
error
_result
=
convert_error_code_to_mysql
((
int
)
error
,
user_thd
);
func_exit:
func_exit:
innobase_active_small
();
innobase_active_small
();
DBUG_RETURN
(
error
);
DBUG_RETURN
(
error
_result
);
}
}
/**************************************************************************
/**************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment