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
c4223f53
Commit
c4223f53
authored
20 years ago
by
Sinisa@sinisa.nasamreza.org
Browse files
Options
Browse Files
Download
Plain Diff
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
parents
1d75d8d5
ba029973
Branches unavailable
Tags unavailable
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
mysql-test/r/null.result
mysql-test/r/null.result
+3
-0
mysql-test/t/null.test
mysql-test/t/null.test
+1
-0
sql/item_func.h
sql/item_func.h
+4
-4
sql/sql_parse.cc
sql/sql_parse.cc
+2
-0
No files found.
mysql-test/r/null.result
View file @
c4223f53
...
...
@@ -153,3 +153,6 @@ explain select * from t1 where a between 2 and 3 or b is null;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range idx idx 4 NULL 2 Using where
drop table t1;
select cast(NULL as signed);
cast(NULL as signed)
NULL
This diff is collapsed.
Click to expand it.
mysql-test/t/null.test
View file @
c4223f53
...
...
@@ -97,3 +97,4 @@ insert into t1 values
explain
select
*
from
t1
where
a
between
2
and
3
;
explain
select
*
from
t1
where
a
between
2
and
3
or
b
is
null
;
drop
table
t1
;
select
cast
(
NULL
as
signed
);
This diff is collapsed.
Click to expand it.
sql/item_func.h
View file @
c4223f53
...
...
@@ -212,8 +212,8 @@ class Item_func_signed :public Item_int_func
{
public:
Item_func_signed
(
Item
*
a
)
:
Item_int_func
(
a
)
{}
double
val
()
{
return
args
[
0
]
->
val
();
}
longlong
val_int
()
{
return
args
[
0
]
->
val_int
();
}
double
val
()
{
null_value
=
args
[
0
]
->
null_value
;
return
args
[
0
]
->
val
();
}
longlong
val_int
()
{
null_value
=
args
[
0
]
->
null_value
;
return
args
[
0
]
->
val_int
();
}
void
fix_length_and_dec
()
{
max_length
=
args
[
0
]
->
max_length
;
unsigned_flag
=
0
;
}
void
print
(
String
*
str
);
...
...
@@ -224,8 +224,8 @@ class Item_func_unsigned :public Item_int_func
{
public:
Item_func_unsigned
(
Item
*
a
)
:
Item_int_func
(
a
)
{}
double
val
()
{
return
args
[
0
]
->
val
();
}
longlong
val_int
()
{
return
args
[
0
]
->
val_int
();
}
double
val
()
{
null_value
=
args
[
0
]
->
null_value
;
return
args
[
0
]
->
val
();
}
longlong
val_int
()
{
null_value
=
args
[
0
]
->
null_value
;
return
args
[
0
]
->
val_int
();
}
void
fix_length_and_dec
()
{
max_length
=
args
[
0
]
->
max_length
;
unsigned_flag
=
1
;
}
void
print
(
String
*
str
);
...
...
This diff is collapsed.
Click to expand it.
sql/sql_parse.cc
View file @
c4223f53
...
...
@@ -1624,9 +1624,11 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
switch
(
command
)
{
case
MYSQL_OPTION_MULTI_STATEMENTS_ON
:
thd
->
client_capabilities
|=
CLIENT_MULTI_STATEMENTS
;
send_eof
(
thd
);
break
;
case
MYSQL_OPTION_MULTI_STATEMENTS_OFF
:
thd
->
client_capabilities
&=
~
CLIENT_MULTI_STATEMENTS
;
send_eof
(
thd
);
break
;
default:
send_error
(
thd
,
ER_UNKNOWN_COM_ERROR
);
...
...
This diff is collapsed.
Click to expand it.
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