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
d62295e4
Commit
d62295e4
authored
Aug 22, 2005
by
monty@mishka.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup during review of new pushed code
parent
ba2ace25
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
148 additions
and
145 deletions
+148
-145
include/my_global.h
include/my_global.h
+7
-7
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-1
sql/sp_head.cc
sql/sp_head.cc
+130
-124
sql/sql_base.cc
sql/sql_base.cc
+1
-1
sql/sql_lex.cc
sql/sql_lex.cc
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
sql/sql_view.cc
sql/sql_view.cc
+1
-1
sql/table.cc
sql/table.cc
+5
-9
No files found.
include/my_global.h
View file @
d62295e4
...
@@ -933,10 +933,10 @@ typedef char bool; /* Ordinary boolean values 0 1 */
...
@@ -933,10 +933,10 @@ typedef char bool; /* Ordinary boolean values 0 1 */
(ABSTIME).ts_nsec=0; \
(ABSTIME).ts_nsec=0; \
}
}
#define set_timespec_nsec(ABSTIME,NSEC) \
#define set_timespec_nsec(ABSTIME,NSEC) \
{\
{
\
ulonglong now= my_getsystime(); \
ulonglong now= my_getsystime()
+ (NSEC/100)
; \
(ABSTIME).ts_sec=
(now / ULL(10000000)) + (NSEC / ULL(100
0000000)); \
(ABSTIME).ts_sec=
(now / ULL(1
0000000)); \
(ABSTIME).ts_nsec= (now % ULL(10000000)
) * 100 + (NSEC % ULL(10000000
00)); \
(ABSTIME).ts_nsec= (now % ULL(10000000)
* 100 + ((NSEC) % 1
00)); \
}
}
#else
#else
#define set_timespec(ABSTIME,SEC) \
#define set_timespec(ABSTIME,SEC) \
...
@@ -948,9 +948,9 @@ typedef char bool; /* Ordinary boolean values 0 1 */
...
@@ -948,9 +948,9 @@ typedef char bool; /* Ordinary boolean values 0 1 */
}
}
#define set_timespec_nsec(ABSTIME,NSEC) \
#define set_timespec_nsec(ABSTIME,NSEC) \
{\
{\
ulonglong now= my_getsystime(); \
ulonglong now= my_getsystime()
+ (NSEC/100)
; \
(ABSTIME).tv_sec=
(now / ULL(10000000)) + (NSEC / ULL(100
0000000)); \
(ABSTIME).tv_sec=
(now / ULL(1
0000000)); \
(ABSTIME).tv_nsec= (now % ULL(10000000)
) * 100 + (NSEC % ULL(1000000000));
\
(ABSTIME).tv_nsec= (now % ULL(10000000)
* 100 + ((NSEC) % 100));
\
}
}
#endif
/* HAVE_TIMESPEC_TS_SEC */
#endif
/* HAVE_TIMESPEC_TS_SEC */
#endif
/* set_timespec */
#endif
/* set_timespec */
...
...
sql/item_cmpfunc.cc
View file @
d62295e4
...
@@ -630,7 +630,7 @@ int Arg_comparator::compare_row()
...
@@ -630,7 +630,7 @@ int Arg_comparator::compare_row()
owner
->
null_value
=
0
;
owner
->
null_value
=
0
;
res
=
0
;
// continue comparison (maybe we will meet explicit difference)
res
=
0
;
// continue comparison (maybe we will meet explicit difference)
}
}
if
(
res
)
else
if
(
res
)
return
res
;
return
res
;
}
}
if
(
was_null
)
if
(
was_null
)
...
@@ -645,6 +645,7 @@ int Arg_comparator::compare_row()
...
@@ -645,6 +645,7 @@ int Arg_comparator::compare_row()
return
0
;
return
0
;
}
}
int
Arg_comparator
::
compare_e_row
()
int
Arg_comparator
::
compare_e_row
()
{
{
(
*
a
)
->
bring_value
();
(
*
a
)
->
bring_value
();
...
...
sql/sp_head.cc
View file @
d62295e4
This diff is collapsed.
Click to expand it.
sql/sql_base.cc
View file @
d62295e4
...
@@ -3363,7 +3363,7 @@ static bool
...
@@ -3363,7 +3363,7 @@ static bool
set_new_item_local_context
(
THD
*
thd
,
Item_ident
*
item
,
TABLE_LIST
*
table_ref
)
set_new_item_local_context
(
THD
*
thd
,
Item_ident
*
item
,
TABLE_LIST
*
table_ref
)
{
{
Name_resolution_context
*
context
;
Name_resolution_context
*
context
;
if
(
!
(
context
=
new
Name_resolution_context
))
if
(
!
(
context
=
new
(
thd
->
mem_root
)
Name_resolution_context
))
return
TRUE
;
return
TRUE
;
context
->
init
();
context
->
init
();
context
->
first_name_resolution_table
=
context
->
first_name_resolution_table
=
...
...
sql/sql_lex.cc
View file @
d62295e4
...
@@ -1520,7 +1520,7 @@ void st_select_lex_unit::print(String *str)
...
@@ -1520,7 +1520,7 @@ void st_select_lex_unit::print(String *str)
if
(
union_all
)
if
(
union_all
)
str
->
append
(
"all "
,
4
);
str
->
append
(
"all "
,
4
);
else
if
(
union_distinct
==
sl
)
else
if
(
union_distinct
==
sl
)
union_all
=
true
;
union_all
=
TRUE
;
}
}
if
(
sl
->
braces
)
if
(
sl
->
braces
)
str
->
append
(
'('
);
str
->
append
(
'('
);
...
...
sql/sql_parse.cc
View file @
d62295e4
...
@@ -6420,7 +6420,7 @@ Name_resolution_context *
...
@@ -6420,7 +6420,7 @@ Name_resolution_context *
make_join_on_context
(
THD
*
thd
,
TABLE_LIST
*
left_op
,
TABLE_LIST
*
right_op
)
make_join_on_context
(
THD
*
thd
,
TABLE_LIST
*
left_op
,
TABLE_LIST
*
right_op
)
{
{
Name_resolution_context
*
on_context
;
Name_resolution_context
*
on_context
;
if
(
!
(
on_context
=
new
Name_resolution_context
))
if
(
!
(
on_context
=
new
(
thd
->
mem_root
)
Name_resolution_context
))
return
NULL
;
return
NULL
;
on_context
->
init
();
on_context
->
init
();
on_context
->
first_name_resolution_table
=
on_context
->
first_name_resolution_table
=
...
...
sql/sql_view.cc
View file @
d62295e4
...
@@ -310,7 +310,7 @@ bool mysql_create_view(THD *thd,
...
@@ -310,7 +310,7 @@ bool mysql_create_view(THD *thd,
open_and_lock_tables can change the value of tables,
open_and_lock_tables can change the value of tables,
e.g. it may happen if before the function call tables was equal to 0.
e.g. it may happen if before the function call tables was equal to 0.
*/
*/
for
(
tbl
=
tables
=
lex
->
query_tables
;
tbl
;
tbl
=
tbl
->
next_global
)
for
(
tbl
=
lex
->
query_tables
;
tbl
;
tbl
=
tbl
->
next_global
)
{
{
/* is this table temporary and is not view? */
/* is this table temporary and is not view? */
if
(
tbl
->
table
->
s
->
tmp_table
!=
NO_TMP_TABLE
&&
!
tbl
->
view
&&
if
(
tbl
->
table
->
s
->
tmp_table
!=
NO_TMP_TABLE
&&
!
tbl
->
view
&&
...
...
sql/table.cc
View file @
d62295e4
...
@@ -2518,12 +2518,9 @@ void Field_iterator_natural_join::set(TABLE_LIST *table_ref)
...
@@ -2518,12 +2518,9 @@ void Field_iterator_natural_join::set(TABLE_LIST *table_ref)
void
Field_iterator_natural_join
::
next
()
void
Field_iterator_natural_join
::
next
()
{
{
cur_column_ref
=
(
*
column_ref_it
)
++
;
cur_column_ref
=
(
*
column_ref_it
)
++
;
DBUG_ASSERT
(
cur_column_ref
?
DBUG_ASSERT
(
!
cur_column_ref
||
!
cur_column_ref
->
table_field
||
(
cur_column_ref
->
table_field
?
cur_column_ref
->
table_ref
->
table
==
cur_column_ref
->
table_ref
->
table
==
cur_column_ref
->
table_field
->
table
);
cur_column_ref
->
table_field
->
table
:
TRUE
)
:
TRUE
);
}
}
...
@@ -2695,9 +2692,8 @@ Field_iterator_table_ref::get_or_create_column_ref(THD *thd, bool *is_created)
...
@@ -2695,9 +2692,8 @@ Field_iterator_table_ref::get_or_create_column_ref(THD *thd, bool *is_created)
nj_col
=
natural_join_it
.
column_ref
();
nj_col
=
natural_join_it
.
column_ref
();
DBUG_ASSERT
(
nj_col
);
DBUG_ASSERT
(
nj_col
);
}
}
DBUG_ASSERT
(
nj_col
->
table_field
?
DBUG_ASSERT
(
!
nj_col
->
table_field
||
nj_col
->
table_ref
->
table
==
nj_col
->
table_field
->
table
:
nj_col
->
table_ref
->
table
==
nj_col
->
table_field
->
table
);
TRUE
);
return
nj_col
;
return
nj_col
;
}
}
...
...
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