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
f64428be
Commit
f64428be
authored
Oct 16, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix after merge
parent
2cbb3b22
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
5 deletions
+26
-5
sql/item.cc
sql/item.cc
+22
-0
sql/item.h
sql/item.h
+2
-2
sql/mysqld.cc
sql/mysqld.cc
+0
-1
sql/sql_select.cc
sql/sql_select.cc
+2
-2
No files found.
sql/item.cc
View file @
f64428be
...
...
@@ -622,6 +622,28 @@ int Item_field::save_in_field(Field *to)
}
/*
Store null in field
SYNOPSIS
save_in_field()
field Field where we want to store NULL
DESCRIPTION
This is used on INSERT.
Allow NULL to be inserted in timestamp and auto_increment values
RETURN VALUES
0 ok
1 Field doesn't support NULL values and can't handle 'field = NULL'
*/
int
Item_null
::
save_in_field
(
Field
*
field
)
{
return
set_field_to_null_with_conversions
(
field
);
}
/*
Store null in field
...
...
sql/item.h
View file @
f64428be
...
...
@@ -56,7 +56,7 @@ class Item {
virtual
int
save_in_field
(
Field
*
field
);
virtual
void
save_org_in_field
(
Field
*
field
)
{
(
void
)
save_in_field
(
field
);
}
virtual
bool
save_safe_in_field
(
Field
*
field
)
virtual
int
save_safe_in_field
(
Field
*
field
)
{
return
save_in_field
(
field
);
}
virtual
bool
send
(
THD
*
thd
,
String
*
str
);
virtual
bool
eq
(
const
Item
*
,
bool
binary_cmp
)
const
;
...
...
@@ -155,7 +155,7 @@ class Item_null :public Item
longlong
val_int
();
String
*
val_str
(
String
*
str
);
void
make_field
(
Send_field
*
field
);
int
save_in_field
(
Field
*
field
);
int
save_in_field
(
Field
*
field
);
int
save_safe_in_field
(
Field
*
field
);
enum
Item_result
result_type
()
const
{
return
STRING_RESULT
;
}
...
...
sql/mysqld.cc
View file @
f64428be
...
...
@@ -3323,7 +3323,6 @@ struct my_option my_long_options[] =
{
"transaction-isolation"
,
OPT_TX_ISOLATION
,
"Default transaction isolation level"
,
0
,
0
,
0
,
GET_STR
,
REQUIRED_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
0
,
0
},
{
"external-locking"
,
OPT_USE_LOCKING
,
"Use system (external) locking. With this option enabled you can run myisamchk to test (not repair) tables while the MySQL server is running"
,
(
gptr
*
)
&
opt_external_locking
,
(
gptr
*
)
&
opt_external_locking
,
0
,
GET_BOOL
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
sql/sql_select.cc
View file @
f64428be
...
...
@@ -976,8 +976,8 @@ JOIN::exec()
We can abort sorting after thd->select_limit rows if we there is no
WHERE clause for any tables after the sorted one.
*/
JOIN_TAB
*
table
=
&
join_tab
[
join
.
const_tables
+
1
];
JOIN_TAB
*
end_table
=
&
join_tab
[
join
.
tables
];
JOIN_TAB
*
table
=
&
join_tab
[
const_tables
+
1
];
JOIN_TAB
*
end_table
=
&
join_tab
[
tables
];
for
(;
table
<
end_table
;
table
++
)
{
if
(
table
->
select_cond
)
...
...
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