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
d02d1059
Commit
d02d1059
authored
May 06, 2004
by
pem@mysql.comhem.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed (portability) bug in handler.h, and tried to silence cast warnings on some platforms.
parent
57feb662
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
11 deletions
+18
-11
sql/handler.h
sql/handler.h
+3
-3
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+2
-1
sql/item_subselect.h
sql/item_subselect.h
+1
-1
sql/set_var.cc
sql/set_var.cc
+1
-1
sql/spatial.h
sql/spatial.h
+1
-1
sql/sql_cache.cc
sql/sql_cache.cc
+1
-1
sql/sql_lex.h
sql/sql_lex.h
+9
-3
No files found.
sql/handler.h
View file @
d02d1059
...
...
@@ -322,11 +322,11 @@ public:
{
return
(
my_errno
=
HA_ERR_WRONG_COMMAND
);
}
virtual
int
handler
::
read_range_first
(
const
key_range
*
start_key
,
virtual
int
read_range_first
(
const
key_range
*
start_key
,
const
key_range
*
end_key
,
bool
sorted
);
virtual
int
handler
::
read_range_next
(
bool
eq_range
);
int
handler
::
compare_key
(
key_range
*
range
);
virtual
int
read_range_next
(
bool
eq_range
);
int
compare_key
(
key_range
*
range
);
virtual
int
ft_init
()
{
return
-
1
;
}
virtual
FT_INFO
*
ft_init_ext
(
uint
flags
,
uint
inx
,
const
byte
*
key
,
uint
keylen
)
...
...
sql/item_cmpfunc.h
View file @
d02d1059
...
...
@@ -96,7 +96,8 @@ protected:
bool
save_cache
;
public:
Item_in_optimizer
(
Item
*
a
,
Item_in_subselect
*
b
)
:
Item_bool_func
(
a
,
(
Item
*
)
b
),
cache
(
0
),
save_cache
(
0
)
{}
Item_bool_func
(
a
,
my_reinterpret_cast
(
Item
*
)(
b
)),
cache
(
0
),
save_cache
(
0
)
{}
bool
fix_fields
(
THD
*
,
struct
st_table_list
*
,
Item
**
);
bool
fix_left
(
THD
*
thd
,
struct
st_table_list
*
tables
,
Item
**
ref
);
bool
is_null
();
...
...
sql/item_subselect.h
View file @
d02d1059
...
...
@@ -140,7 +140,7 @@ public:
void
fix_length_and_dec
();
uint
cols
();
Item
*
el
(
uint
i
)
{
return
(
Item
*
)
row
[
i
]
;
}
Item
*
el
(
uint
i
)
{
return
my_reinterpret_cast
(
Item
*
)(
row
[
i
])
;
}
Item
**
addr
(
uint
i
)
{
return
(
Item
**
)
row
+
i
;
}
bool
check_cols
(
uint
c
);
bool
null_inside
();
...
...
sql/set_var.cc
View file @
d02d1059
...
...
@@ -853,7 +853,7 @@ bool update_sys_var_str(sys_var_str *var_str, rw_lock_t *var_mutex,
uint
new_length
=
(
var
?
var
->
value
->
str_value
.
length
()
:
0
);
if
(
!
old_value
)
old_value
=
(
char
*
)
""
;
if
(
!
(
res
=
my_strdup_with_length
(
old_value
,
new_length
,
MYF
(
0
))))
if
(
!
(
res
=
my_strdup_with_length
(
(
byte
*
)
old_value
,
new_length
,
MYF
(
0
))))
return
1
;
/*
Replace the old value in such a way that the any thread using
...
...
sql/spatial.h
View file @
d02d1059
...
...
@@ -217,7 +217,7 @@ public:
if
(
!
(
ci
=
find_class
((
int
)
type_id
)))
return
NULL
;
(
*
ci
->
m_create_func
)((
void
*
)
buffer
);
return
(
Geometry
*
)
buffer
;
return
my_reinterpret_cast
(
Geometry
*
)(
buffer
)
;
}
static
Geometry
*
create_from_wkb
(
Geometry_buffer
*
buffer
,
...
...
sql/sql_cache.cc
View file @
d02d1059
...
...
@@ -661,7 +661,7 @@ void query_cache_end_of_result(THD *thd)
if
(
thd
->
net
.
query_cache_query
!=
0
)
// Quick check on unlocked structure
{
#ifdef EMBEDDED_LIBRARY
query_cache_insert
(
&
thd
->
net
,
(
byte
*
)
thd
,
query_cache_insert
(
&
thd
->
net
,
(
char
*
)
thd
,
emb_count_querycache_size
(
thd
));
#endif
STRUCT_LOCK
(
&
query_cache
.
structure_guard_mutex
);
...
...
sql/sql_lex.h
View file @
d02d1059
...
...
@@ -341,12 +341,18 @@ public:
bool
create_total_list
(
THD
*
thd
,
st_lex
*
lex
,
TABLE_LIST
**
result
);
st_select_lex_unit
*
master_unit
();
st_select_lex
*
outer_select
();
st_select_lex
*
first_select
()
{
return
(
st_select_lex
*
)
slave
;
}
st_select_lex
*
first_select
()
{
return
my_reinterpret_cast
(
st_select_lex
*
)(
slave
);
}
st_select_lex
*
first_select_in_union
()
{
return
(
st_select_lex
*
)
slave
;
return
my_reinterpret_cast
(
st_select_lex
*
)(
slave
);
}
st_select_lex_unit
*
next_unit
()
{
return
my_reinterpret_cast
(
st_select_lex_unit
*
)(
next
);
}
st_select_lex_unit
*
next_unit
()
{
return
(
st_select_lex_unit
*
)
next
;
}
st_select_lex
*
return_after_parsing
()
{
return
return_to
;
}
void
exclude_level
();
void
exclude_tree
();
...
...
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