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
7f845036
Commit
7f845036
authored
Jul 31, 2005
by
monty@mishka.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
After merge fixes
Review of new pushed code
parent
585da2f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
client/mysqlbinlog.cc
client/mysqlbinlog.cc
+1
-1
sql/set_var.cc
sql/set_var.cc
+8
-10
sql/sql_select.cc
sql/sql_select.cc
+3
-5
No files found.
client/mysqlbinlog.cc
View file @
7f845036
...
...
@@ -805,7 +805,7 @@ static my_time_t convert_str_to_timestamp(const char* str)
int
was_cut
;
MYSQL_TIME
l_time
;
long
dummy_my_timezone
;
bool
dummy_in_dst_time_gap
;
my_
bool
dummy_in_dst_time_gap
;
/* We require a total specification (date AND time) */
if
(
str_to_datetime
(
str
,
strlen
(
str
),
&
l_time
,
0
,
&
was_cut
)
!=
MYSQL_TIMESTAMP_DATETIME
||
was_cut
)
...
...
sql/set_var.cc
View file @
7f845036
...
...
@@ -1422,12 +1422,6 @@ bool sys_var_thd_ulong::update(THD *thd, set_var *var)
{
ulonglong
tmp
=
var
->
save_result
.
ulonglong_value
;
#if SIZEOF_LONG != SIZEOF_LONGLONG
/* Avoid overflow on 32-bit platforms. */
if
(
tmp
>
ULONG_MAX
)
tmp
=
ULONG_MAX
;
#endif
/* Don't use bigger value than given with --maximum-variable-name=.. */
if
((
ulong
)
tmp
>
max_system_variables
.
*
offset
)
tmp
=
max_system_variables
.
*
offset
;
...
...
@@ -3225,6 +3219,7 @@ byte *sys_var_thd_sql_mode::symbolic_mode_representation(THD *thd, ulong val,
{
char
buff
[
256
];
String
tmp
(
buff
,
sizeof
(
buff
),
&
my_charset_latin1
);
ulong
length
;
tmp
.
length
(
0
);
for
(
uint
i
=
0
;
val
;
val
>>=
1
,
i
++
)
...
...
@@ -3236,12 +3231,14 @@ byte *sys_var_thd_sql_mode::symbolic_mode_representation(THD *thd, ulong val,
tmp
.
append
(
','
);
}
}
if
(
tmp
.
length
())
tmp
.
length
(
tmp
.
length
()
-
1
);
*
len
=
tmp
.
length
();
return
(
byte
*
)
thd
->
strmake
(
tmp
.
ptr
(),
tmp
.
length
());
if
((
length
=
tmp
.
length
()))
length
--
;
*
len
=
length
;
return
(
byte
*
)
thd
->
strmake
(
tmp
.
ptr
(),
length
);
}
byte
*
sys_var_thd_sql_mode
::
value_ptr
(
THD
*
thd
,
enum_var_type
type
,
LEX_STRING
*
base
)
{
...
...
@@ -3260,6 +3257,7 @@ void sys_var_thd_sql_mode::set_default(THD *thd, enum_var_type type)
thd
->
variables
.
*
offset
=
global_system_variables
.
*
offset
;
}
void
fix_sql_mode_var
(
THD
*
thd
,
enum_var_type
type
)
{
if
(
type
==
OPT_GLOBAL
)
...
...
sql/sql_select.cc
View file @
7f845036
...
...
@@ -2757,11 +2757,9 @@ add_key_field(KEY_FIELD **key_fields,uint and_level, Item_func *cond,
We use null_rejecting in add_not_null_conds() to add
'othertbl.field IS NOT NULL' to tab->select_cond.
*/
(
*
key_fields
)
->
null_rejecting
=
(
cond
->
functype
()
==
Item_func
::
EQ_FUNC
)
&&
((
*
value
)
->
type
()
==
Item
::
FIELD_ITEM
)
&&
(((
Item_field
*
)
*
value
)
->
field
->
maybe_null
()
||
((
Item_field
*
)
*
value
)
->
field
->
table
->
maybe_null
);
(
*
key_fields
)
->
null_rejecting
=
((
cond
->
functype
()
==
Item_func
::
EQ_FUNC
)
&&
((
*
value
)
->
type
()
==
Item
::
FIELD_ITEM
)
&&
((
Item_field
*
)
*
value
)
->
field
->
maybe_null
());
(
*
key_fields
)
++
;
}
...
...
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