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
f8edd9f9
Commit
f8edd9f9
authored
Nov 17, 2004
by
bell@sanja.is.com.ua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing compiler warnings
parent
0fa5496a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
sql/item_func.cc
sql/item_func.cc
+1
-1
sql/sql_base.cc
sql/sql_base.cc
+2
-1
sql/sql_view.cc
sql/sql_view.cc
+5
-2
sql/table.h
sql/table.h
+1
-1
No files found.
sql/item_func.cc
View file @
f8edd9f9
...
@@ -174,7 +174,7 @@ bool Item_func::agg_arg_charsets(DTCollation &coll,
...
@@ -174,7 +174,7 @@ bool Item_func::agg_arg_charsets(DTCollation &coll,
for
(
arg
=
args
,
last
=
args
+
nargs
;
arg
<
last
;
arg
++
)
for
(
arg
=
args
,
last
=
args
+
nargs
;
arg
<
last
;
arg
++
)
{
{
Item
*
conv
;
Item
*
conv
;
uint
dummy_offset
;
uint
32
dummy_offset
;
if
(
!
String
::
needs_conversion
(
0
,
coll
.
collation
,
if
(
!
String
::
needs_conversion
(
0
,
coll
.
collation
,
(
*
arg
)
->
collation
.
collation
,
(
*
arg
)
->
collation
.
collation
,
&
dummy_offset
))
&
dummy_offset
))
...
...
sql/sql_base.cc
View file @
f8edd9f9
...
@@ -3037,8 +3037,9 @@ insert_fields(THD *thd, TABLE_LIST *tables, const char *db_name,
...
@@ -3037,8 +3037,9 @@ insert_fields(THD *thd, TABLE_LIST *tables, const char *db_name,
my_message
(
ER_NO_TABLES_USED
,
ER
(
ER_NO_TABLES_USED
),
MYF
(
0
));
my_message
(
ER_NO_TABLES_USED
,
ER
(
ER_NO_TABLES_USED
),
MYF
(
0
));
else
else
my_error
(
ER_BAD_TABLE_ERROR
,
MYF
(
0
),
table_name
);
my_error
(
ER_BAD_TABLE_ERROR
,
MYF
(
0
),
table_name
);
#ifndef NO_EMBEDDED_ACCESS_CHECKS
err:
err:
#endif
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
...
...
sql/sql_view.cc
View file @
f8edd9f9
...
@@ -55,7 +55,10 @@ bool mysql_create_view(THD *thd,
...
@@ -55,7 +55,10 @@ bool mysql_create_view(THD *thd,
TABLE_LIST
*
view
=
lex
->
unlink_first_table
(
&
link_to_local
);
TABLE_LIST
*
view
=
lex
->
unlink_first_table
(
&
link_to_local
);
TABLE_LIST
*
tables
=
lex
->
query_tables
;
TABLE_LIST
*
tables
=
lex
->
query_tables
;
TABLE_LIST
*
tbl
;
TABLE_LIST
*
tbl
;
SELECT_LEX
*
select_lex
=
&
lex
->
select_lex
,
*
sl
;
SELECT_LEX
*
select_lex
=
&
lex
->
select_lex
;
#ifndef NO_EMBEDDED_ACCESS_CHECKS
SELECT_LEX
*
sl
;
#endif
SELECT_LEX_UNIT
*
unit
=
&
lex
->
unit
;
SELECT_LEX_UNIT
*
unit
=
&
lex
->
unit
;
bool
res
=
FALSE
;
bool
res
=
FALSE
;
DBUG_ENTER
(
"mysql_create_view"
);
DBUG_ENTER
(
"mysql_create_view"
);
...
@@ -745,7 +748,7 @@ mysql_make_view(File_parser *parser, TABLE_LIST *table)
...
@@ -745,7 +748,7 @@ mysql_make_view(File_parser *parser, TABLE_LIST *table)
table
->
effective_algorithm
=
VIEW_ALGORITHM_MERGE
;
table
->
effective_algorithm
=
VIEW_ALGORITHM_MERGE
;
DBUG_PRINT
(
"info"
,
(
"algorithm: MERGE"
));
DBUG_PRINT
(
"info"
,
(
"algorithm: MERGE"
));
table
->
updatable
=
(
table
->
updatable_view
!=
0
);
table
->
updatable
=
(
table
->
updatable_view
!=
0
);
table
->
effective_with_check
=
table
->
with_check
;
table
->
effective_with_check
=
(
uint8
)
table
->
with_check
;
table
->
ancestor
=
view_tables
;
table
->
ancestor
=
view_tables
;
/*
/*
...
...
sql/table.h
View file @
f8edd9f9
...
@@ -274,7 +274,7 @@ typedef struct st_schema_table
...
@@ -274,7 +274,7 @@ typedef struct st_schema_table
#define VIEW_CHECK_SKIP 2
#define VIEW_CHECK_SKIP 2
struct
st_lex
;
struct
st_lex
;
struct
select_union
;
class
select_union
;
typedef
struct
st_table_list
typedef
struct
st_table_list
{
{
...
...
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