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
96ceb6c2
Commit
96ceb6c2
authored
Jun 28, 2006
by
gkodinov@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gcc 4.1 linux warning fixes backported from 5.0.
parent
faa48bf1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
4 deletions
+22
-4
sql/item_cmpfunc.h
sql/item_cmpfunc.h
+14
-0
sql/opt_range.cc
sql/opt_range.cc
+2
-2
sql/spatial.h
sql/spatial.h
+4
-0
sql/sql_select.h
sql/sql_select.h
+1
-1
sql/sql_update.cc
sql/sql_update.cc
+1
-1
No files found.
sql/item_cmpfunc.h
View file @
96ceb6c2
...
@@ -124,6 +124,8 @@ class Item_in_optimizer: public Item_bool_func
...
@@ -124,6 +124,8 @@ class Item_in_optimizer: public Item_bool_func
class
Comp_creator
class
Comp_creator
{
{
public:
public:
Comp_creator
()
{}
/* Remove gcc warning */
virtual
~
Comp_creator
()
{}
/* Remove gcc warning */
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
=
0
;
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
=
0
;
virtual
const
char
*
symbol
(
bool
invert
)
const
=
0
;
virtual
const
char
*
symbol
(
bool
invert
)
const
=
0
;
virtual
bool
eqne_op
()
const
=
0
;
virtual
bool
eqne_op
()
const
=
0
;
...
@@ -133,6 +135,8 @@ class Comp_creator
...
@@ -133,6 +135,8 @@ class Comp_creator
class
Eq_creator
:
public
Comp_creator
class
Eq_creator
:
public
Comp_creator
{
{
public:
public:
Eq_creator
()
{}
/* Remove gcc warning */
virtual
~
Eq_creator
()
{}
/* Remove gcc warning */
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
"<>"
:
"="
;
}
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
"<>"
:
"="
;
}
virtual
bool
eqne_op
()
const
{
return
1
;
}
virtual
bool
eqne_op
()
const
{
return
1
;
}
...
@@ -142,6 +146,8 @@ class Eq_creator :public Comp_creator
...
@@ -142,6 +146,8 @@ class Eq_creator :public Comp_creator
class
Ne_creator
:
public
Comp_creator
class
Ne_creator
:
public
Comp_creator
{
{
public:
public:
Ne_creator
()
{}
/* Remove gcc warning */
virtual
~
Ne_creator
()
{}
/* Remove gcc warning */
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
"="
:
"<>"
;
}
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
"="
:
"<>"
;
}
virtual
bool
eqne_op
()
const
{
return
1
;
}
virtual
bool
eqne_op
()
const
{
return
1
;
}
...
@@ -151,6 +157,8 @@ class Ne_creator :public Comp_creator
...
@@ -151,6 +157,8 @@ class Ne_creator :public Comp_creator
class
Gt_creator
:
public
Comp_creator
class
Gt_creator
:
public
Comp_creator
{
{
public:
public:
Gt_creator
()
{}
/* Remove gcc warning */
virtual
~
Gt_creator
()
{}
/* Remove gcc warning */
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
"<="
:
">"
;
}
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
"<="
:
">"
;
}
virtual
bool
eqne_op
()
const
{
return
0
;
}
virtual
bool
eqne_op
()
const
{
return
0
;
}
...
@@ -160,6 +168,8 @@ class Gt_creator :public Comp_creator
...
@@ -160,6 +168,8 @@ class Gt_creator :public Comp_creator
class
Lt_creator
:
public
Comp_creator
class
Lt_creator
:
public
Comp_creator
{
{
public:
public:
Lt_creator
()
{}
/* Remove gcc warning */
virtual
~
Lt_creator
()
{}
/* Remove gcc warning */
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
">="
:
"<"
;
}
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
">="
:
"<"
;
}
virtual
bool
eqne_op
()
const
{
return
0
;
}
virtual
bool
eqne_op
()
const
{
return
0
;
}
...
@@ -169,6 +179,8 @@ class Lt_creator :public Comp_creator
...
@@ -169,6 +179,8 @@ class Lt_creator :public Comp_creator
class
Ge_creator
:
public
Comp_creator
class
Ge_creator
:
public
Comp_creator
{
{
public:
public:
Ge_creator
()
{}
/* Remove gcc warning */
virtual
~
Ge_creator
()
{}
/* Remove gcc warning */
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
"<"
:
">="
;
}
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
"<"
:
">="
;
}
virtual
bool
eqne_op
()
const
{
return
0
;
}
virtual
bool
eqne_op
()
const
{
return
0
;
}
...
@@ -178,6 +190,8 @@ class Ge_creator :public Comp_creator
...
@@ -178,6 +190,8 @@ class Ge_creator :public Comp_creator
class
Le_creator
:
public
Comp_creator
class
Le_creator
:
public
Comp_creator
{
{
public:
public:
Le_creator
()
{}
/* Remove gcc warning */
virtual
~
Le_creator
()
{}
/* Remove gcc warning */
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
Item_bool_func2
*
create
(
Item
*
a
,
Item
*
b
)
const
;
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
">"
:
"<="
;
}
virtual
const
char
*
symbol
(
bool
invert
)
const
{
return
invert
?
">"
:
"<="
;
}
virtual
bool
eqne_op
()
const
{
return
0
;
}
virtual
bool
eqne_op
()
const
{
return
0
;
}
...
...
sql/opt_range.cc
View file @
96ceb6c2
...
@@ -63,8 +63,8 @@ class SEL_ARG :public Sql_alloc
...
@@ -63,8 +63,8 @@ class SEL_ARG :public Sql_alloc
SEL_ARG
(
Field
*
field
,
uint8
part
,
char
*
min_value
,
char
*
max_value
,
SEL_ARG
(
Field
*
field
,
uint8
part
,
char
*
min_value
,
char
*
max_value
,
uint8
min_flag
,
uint8
max_flag
,
uint8
maybe_flag
);
uint8
min_flag
,
uint8
max_flag
,
uint8
maybe_flag
);
SEL_ARG
(
enum
Type
type_arg
)
SEL_ARG
(
enum
Type
type_arg
)
:
elements
(
1
),
use_count
(
1
),
left
(
0
),
next_key_part
(
0
),
color
(
BLACK
),
:
min_flag
(
0
),
elements
(
1
),
use_count
(
1
),
left
(
0
),
next_key_part
(
0
),
type
(
type_arg
),
min_flag
(
0
)
color
(
BLACK
),
type
(
type_arg
)
{}
{}
inline
bool
is_same
(
SEL_ARG
*
arg
)
inline
bool
is_same
(
SEL_ARG
*
arg
)
{
{
...
...
sql/spatial.h
View file @
96ceb6c2
...
@@ -165,6 +165,8 @@ struct Geometry_buffer;
...
@@ -165,6 +165,8 @@ struct Geometry_buffer;
class
Geometry
class
Geometry
{
{
public:
public:
Geometry
()
{}
/* remove gcc warning */
virtual
~
Geometry
()
{}
/* remove gcc warning */
static
void
*
operator
new
(
size_t
size
,
void
*
buffer
)
static
void
*
operator
new
(
size_t
size
,
void
*
buffer
)
{
{
return
buffer
;
return
buffer
;
...
@@ -173,6 +175,8 @@ class Geometry
...
@@ -173,6 +175,8 @@ class Geometry
static
void
operator
delete
(
void
*
ptr
,
void
*
buffer
)
static
void
operator
delete
(
void
*
ptr
,
void
*
buffer
)
{}
{}
static
void
operator
delete
(
void
*
buffer
)
{}
/* remove gcc warning */
enum
wkbType
enum
wkbType
{
{
wkb_point
=
1
,
wkb_point
=
1
,
...
...
sql/sql_select.h
View file @
96ceb6c2
...
@@ -229,7 +229,7 @@ class JOIN :public Sql_alloc
...
@@ -229,7 +229,7 @@ class JOIN :public Sql_alloc
}
}
JOIN
(
JOIN
&
join
)
JOIN
(
JOIN
&
join
)
:
fields_list
(
join
.
fields_list
)
:
Sql_alloc
(),
fields_list
(
join
.
fields_list
)
{
{
init
(
join
.
thd
,
join
.
fields_list
,
join
.
select_options
,
init
(
join
.
thd
,
join
.
fields_list
,
join
.
select_options
,
join
.
result
);
join
.
result
);
...
...
sql/sql_update.cc
View file @
96ceb6c2
...
@@ -1094,7 +1094,7 @@ bool multi_update::send_data(List<Item> ¬_used_values)
...
@@ -1094,7 +1094,7 @@ bool multi_update::send_data(List<Item> ¬_used_values)
memcpy
((
char
*
)
tmp_table
->
field
[
0
]
->
ptr
,
memcpy
((
char
*
)
tmp_table
->
field
[
0
]
->
ptr
,
(
char
*
)
table
->
file
->
ref
,
table
->
file
->
ref_length
);
(
char
*
)
table
->
file
->
ref
,
table
->
file
->
ref_length
);
/* Write row, ignoring duplicated updates to a row */
/* Write row, ignoring duplicated updates to a row */
if
(
error
=
tmp_table
->
file
->
write_row
(
tmp_table
->
record
[
0
]
))
if
(
(
error
=
tmp_table
->
file
->
write_row
(
tmp_table
->
record
[
0
])
))
{
{
if
(
error
!=
HA_ERR_FOUND_DUPP_KEY
&&
if
(
error
!=
HA_ERR_FOUND_DUPP_KEY
&&
error
!=
HA_ERR_FOUND_DUPP_UNIQUE
&&
error
!=
HA_ERR_FOUND_DUPP_UNIQUE
&&
...
...
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