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
1ecb8c8f
Commit
1ecb8c8f
authored
Feb 26, 2005
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes while during review of last pull
Temporary patch to remove some warnings
parent
f949f6a9
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
11 deletions
+15
-11
sql/item.cc
sql/item.cc
+1
-2
sql/protocol.cc
sql/protocol.cc
+2
-2
sql/sql_parse.cc
sql/sql_parse.cc
+10
-6
sql/table.cc
sql/table.cc
+2
-1
No files found.
sql/item.cc
View file @
1ecb8c8f
...
@@ -4390,9 +4390,8 @@ my_decimal *Item_cache_real::val_decimal(my_decimal *decimal_val)
...
@@ -4390,9 +4390,8 @@ my_decimal *Item_cache_real::val_decimal(my_decimal *decimal_val)
void
Item_cache_decimal
::
store
(
Item
*
item
)
void
Item_cache_decimal
::
store
(
Item
*
item
)
{
{
my_decimal
*
val
=
item
->
val_decimal_result
(
&
decimal_value
);
my_decimal
*
val
=
item
->
val_decimal_result
(
&
decimal_value
);
if
(
val
!=
&
decimal_value
&&
!
item
->
nul
l_value
)
if
(
!
(
null_value
=
item
->
null_value
)
&&
val
!=
&
decima
l_value
)
my_decimal2decimal
(
val
,
&
decimal_value
);
my_decimal2decimal
(
val
,
&
decimal_value
);
null_value
=
item
->
null_value
;
}
}
double
Item_cache_decimal
::
val_real
()
double
Item_cache_decimal
::
val_real
()
...
...
sql/protocol.cc
View file @
1ecb8c8f
...
@@ -326,7 +326,7 @@ send_ok(THD *thd, ha_rows affected_rows, ulonglong id, const char *message)
...
@@ -326,7 +326,7 @@ send_ok(THD *thd, ha_rows affected_rows, ulonglong id, const char *message)
/* We can't anymore send an error to the client */
/* We can't anymore send an error to the client */
thd
->
net
.
report_error
=
0
;
thd
->
net
.
report_error
=
0
;
thd
->
net
.
no_send_error
=
1
;
thd
->
net
.
no_send_error
=
1
;
DBUG_PRINT
(
"info"
,
(
"OK sent, so no more error send
o
ng allowed"
));
DBUG_PRINT
(
"info"
,
(
"OK sent, so no more error send
i
ng allowed"
));
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
...
@@ -388,7 +388,7 @@ send_eof(THD *thd, bool no_flush)
...
@@ -388,7 +388,7 @@ send_eof(THD *thd, bool no_flush)
VOID
(
net_flush
(
net
));
VOID
(
net_flush
(
net
));
}
}
thd
->
net
.
no_send_error
=
1
;
thd
->
net
.
no_send_error
=
1
;
DBUG_PRINT
(
"info"
,
(
"EOF sent, so no more error send
o
ng allowed"
));
DBUG_PRINT
(
"info"
,
(
"EOF sent, so no more error send
i
ng allowed"
));
}
}
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
...
...
sql/sql_parse.cc
View file @
1ecb8c8f
...
@@ -2363,7 +2363,10 @@ mysql_execute_command(THD *thd)
...
@@ -2363,7 +2363,10 @@ mysql_execute_command(THD *thd)
lex
->
sql_command
!=
SQLCOM_LOCK_TABLES
&&
lex
->
sql_command
!=
SQLCOM_LOCK_TABLES
&&
lex
->
sql_command
!=
SQLCOM_UNLOCK_TABLES
)
lex
->
sql_command
!=
SQLCOM_UNLOCK_TABLES
)
{
{
if
(
process_nested_sp
(
thd
,
lex
,
&
locked_tables
))
thd
->
no_warnings_for_error
=
1
;
res
=
process_nested_sp
(
thd
,
lex
,
&
locked_tables
);
thd
->
no_warnings_for_error
=
0
;
if
(
res
)
DBUG_RETURN
(
TRUE
);
DBUG_RETURN
(
TRUE
);
}
}
...
@@ -3819,9 +3822,9 @@ unsent_create_error:
...
@@ -3819,9 +3822,9 @@ unsent_create_error:
}
}
#endif
/*!NO_EMBEDDED_ACCESS_CHECKS*/
#endif
/*!NO_EMBEDDED_ACCESS_CHECKS*/
case
SQLCOM_RESET
:
case
SQLCOM_RESET
:
/*
/*
RESET commands are never written to the binary log, so we have to
RESET commands are never written to the binary log, so we have to
initialize this variable because RESET shares the same code as FLUSH
initialize this variable because RESET shares the same code as FLUSH
*/
*/
lex
->
no_write_to_binlog
=
1
;
lex
->
no_write_to_binlog
=
1
;
case
SQLCOM_FLUSH
:
case
SQLCOM_FLUSH
:
...
@@ -4180,8 +4183,9 @@ unsent_create_error:
...
@@ -4180,8 +4183,9 @@ unsent_create_error:
thd
->
row_count_func
=
0
;
thd
->
row_count_func
=
0
;
res
=
sp
->
execute_procedure
(
thd
,
&
lex
->
value_list
);
res
=
sp
->
execute_procedure
(
thd
,
&
lex
->
value_list
);
/* If warnings have been cleared, we have to clear total_warn_count
/*
* too, otherwise the clients get confused.
If warnings have been cleared, we have to clear total_warn_count
too, otherwise the clients get confused.
*/
*/
if
(
thd
->
warn_list
.
is_empty
())
if
(
thd
->
warn_list
.
is_empty
())
thd
->
total_warn_count
=
0
;
thd
->
total_warn_count
=
0
;
...
...
sql/table.cc
View file @
1ecb8c8f
...
@@ -1800,7 +1800,8 @@ bool st_table_list::setup_ancestor(THD *thd, Item **conds,
...
@@ -1800,7 +1800,8 @@ bool st_table_list::setup_ancestor(THD *thd, Item **conds,
alloc
(
select
->
item_list
.
elements
*
alloc
(
select
->
item_list
.
elements
*
sizeof
(
Field_translator
)))))
sizeof
(
Field_translator
)))))
{
{
DBUG_RETURN
(
TRUE
);
res
=
TRUE
;
goto
ok
;
// Restore thd
}
}
select_lex
->
no_wrap_view_item
=
1
;
select_lex
->
no_wrap_view_item
=
1
;
...
...
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