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
70b1d538
Commit
70b1d538
authored
Sep 18, 2002
by
monty@mashka.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
merge with 3.23.53 (only code cleanup and new test case)
parents
f42a28e2
74744466
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
Docs/manual.texi
Docs/manual.texi
+2
-0
mysql-test/t/binary.test
mysql-test/t/binary.test
+10
-0
sql/item_strfunc.h
sql/item_strfunc.h
+5
-1
No files found.
Docs/manual.texi
View file @
70b1d538
...
@@ -51235,6 +51235,8 @@ not yet 100% confident in this code.
...
@@ -51235,6 +51235,8 @@ not yet 100% confident in this code.
@appendixsubsec Changes in release 3.23.53
@appendixsubsec Changes in release 3.23.53
@itemize @bullet
@itemize @bullet
@item
@item
Fixed core dump bug when using the @code{BINARY} cast on a @code{NULL} value.
@item
Fixed bug in @code{ALTER TABLE} and @code{RENAME TABLE} when running with
Fixed bug in @code{ALTER TABLE} and @code{RENAME TABLE} when running with
@code{-O lower_case_table_names=1} (typically on windows) when giving the
@code{-O lower_case_table_names=1} (typically on windows) when giving the
table name in uppercase.
table name in uppercase.
mysql-test/t/binary.test
View file @
70b1d538
...
@@ -32,3 +32,13 @@ select * from t1 where a="hello ";
...
@@ -32,3 +32,13 @@ select * from t1 where a="hello ";
select
*
from
t1
where
b
=
"hello "
;
select
*
from
t1
where
b
=
"hello "
;
select
*
from
t1
where
b
=
"hello"
;
select
*
from
t1
where
b
=
"hello"
;
drop
table
t1
;
drop
table
t1
;
#
# Test of binary and NULL
#
create
table
t1
(
b
char
(
8
));
insert
into
t1
values
(
NULL
);
select
b
from
t1
where
binary
b
like
''
;
select
b
from
t1
group
by
binary
b
like
''
;
select
b
from
t1
having
binary
b
like
''
;
drop
table
t1
;
sql/item_strfunc.h
View file @
70b1d538
...
@@ -486,7 +486,11 @@ public:
...
@@ -486,7 +486,11 @@ public:
Item_func_binary
(
Item
*
a
)
:
Item_str_func
(
a
)
{}
Item_func_binary
(
Item
*
a
)
:
Item_str_func
(
a
)
{}
const
char
*
func_name
()
const
{
return
"binary"
;
}
const
char
*
func_name
()
const
{
return
"binary"
;
}
String
*
val_str
(
String
*
a
)
String
*
val_str
(
String
*
a
)
{
a
=
args
[
0
]
->
val_str
(
a
);
null_value
=
args
[
0
]
->
null_value
;
return
a
;
}
{
String
*
tmp
=
args
[
0
]
->
val_str
(
a
);
null_value
=
args
[
0
]
->
null_value
;
return
tmp
;
}
void
fix_length_and_dec
()
{
binary
=
1
;
max_length
=
args
[
0
]
->
max_length
;
}
void
fix_length_and_dec
()
{
binary
=
1
;
max_length
=
args
[
0
]
->
max_length
;
}
void
print
(
String
*
str
)
{
print_op
(
str
);
}
void
print
(
String
*
str
)
{
print_op
(
str
);
}
};
};
...
...
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