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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
26982250
Commit
26982250
authored
Jan 27, 2010
by
Alexander Nozdrin
Browse files
Options
Browse Files
Download
Plain Diff
Auto-merge from mysql-trunk-merge.
parents
b5edab10
440f5a9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
sql/item.cc
sql/item.cc
+1
-1
sql/sql_select.h
sql/sql_select.h
+12
-0
No files found.
sql/item.cc
View file @
26982250
...
...
@@ -5312,7 +5312,7 @@ int Item::save_in_field(Field *field, bool no_conversions)
field
->
set_notnull
();
error
=
field
->
store
(
nr
,
unsigned_flag
);
}
return
error
;
return
error
?
error
:
(
field
->
table
->
in_use
->
is_error
()
?
2
:
0
)
;
}
...
...
sql/sql_select.h
View file @
26982250
...
...
@@ -719,6 +719,12 @@ class store_key_item :public store_key
my_bitmap_map
*
old_map
=
dbug_tmp_use_all_columns
(
table
,
table
->
write_set
);
int
res
=
item
->
save_in_field
(
to_field
,
1
);
/*
Item::save_in_field() may call Item::val_xxx(). And if this is a subquery
we need to check for errors executing it and react accordingly
*/
if
(
!
res
&&
table
->
in_use
->
is_error
())
res
=
2
;
dbug_tmp_restore_column_map
(
table
->
write_set
,
old_map
);
null_key
=
to_field
->
is_null
()
||
item
->
null_value
;
return
(
err
!=
0
||
res
>
2
?
STORE_KEY_FATAL
:
(
store_key_result
)
res
);
...
...
@@ -752,6 +758,12 @@ class store_key_const_item :public store_key_item
if
(
!
err
)
err
=
res
;
}
/*
Item::save_in_field() may call Item::val_xxx(). And if this is a subquery
we need to check for errors executing it and react accordingly
*/
if
(
!
err
&&
to_field
->
table
->
in_use
->
is_error
())
err
=
2
;
}
null_key
=
to_field
->
is_null
()
||
item
->
null_value
;
return
(
err
>
2
?
STORE_KEY_FATAL
:
(
store_key_result
)
err
);
...
...
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