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
1c10a014
Commit
1c10a014
authored
Mar 15, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug#2972 Problem the the CONV() function
parent
eb1f6c53
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
8 deletions
+18
-8
mysql-test/r/func_str.result
mysql-test/r/func_str.result
+3
-0
mysql-test/t/func_str.test
mysql-test/t/func_str.test
+7
-0
strings/ctype-simple.c
strings/ctype-simple.c
+8
-8
No files found.
mysql-test/r/func_str.result
View file @
1c10a014
...
...
@@ -624,6 +624,9 @@ Note 1003 select high_priority md5(_latin1'hello') AS `md5('hello')`,sha(_latin1
SELECT lpad(12345, 5, "#");
lpad(12345, 5, "#")
12345
SELECT conv(71, 10, 36), conv('1Z', 36, 10);
conv(71, 10, 36) conv('1Z', 36, 10)
1Z 71
create table t1 (id int(1), str varchar(10)) DEFAULT CHARSET=utf8;
insert into t1 values (1,'aaaaaaaaaa'), (2,'bbbbbbbbbb');
create table t2 (id int(1), str varchar(10)) DEFAULT CHARSET=utf8;
...
...
mysql-test/t/func_str.test
View file @
1c10a014
...
...
@@ -361,6 +361,13 @@ explain extended select md5('hello'), sha('abc'), sha1('abc'), soundex(''), 'moo
SELECT
lpad
(
12345
,
5
,
"#"
);
#
# Bug #2972
#
SELECT
conv
(
71
,
10
,
36
),
conv
(
'1Z'
,
36
,
10
);
#
# Bug #3089
...
...
strings/ctype-simple.c
View file @
1c10a014
...
...
@@ -262,9 +262,9 @@ long my_strntol_8bit(CHARSET_INFO *cs,
{
if
(
c
>=
'0'
&&
c
<=
'9'
)
c
-=
'0'
;
else
if
(
c
>=
'A'
&&
c
<=
'
F
'
)
else
if
(
c
>=
'A'
&&
c
<=
'
Z
'
)
c
=
c
-
'A'
+
10
;
else
if
(
c
>=
'a'
&&
c
<=
'
f
'
)
else
if
(
c
>=
'a'
&&
c
<=
'
z
'
)
c
=
c
-
'a'
+
10
;
else
break
;
...
...
@@ -384,9 +384,9 @@ ulong my_strntoul_8bit(CHARSET_INFO *cs,
{
if
(
c
>=
'0'
&&
c
<=
'9'
)
c
-=
'0'
;
else
if
(
c
>=
'A'
&&
c
<=
'
F
'
)
else
if
(
c
>=
'A'
&&
c
<=
'
Z
'
)
c
=
c
-
'A'
+
10
;
else
if
(
c
>=
'a'
&&
c
<=
'
f
'
)
else
if
(
c
>=
'a'
&&
c
<=
'
z
'
)
c
=
c
-
'a'
+
10
;
else
break
;
...
...
@@ -499,9 +499,9 @@ longlong my_strntoll_8bit(CHARSET_INFO *cs __attribute__((unused)),
{
if
(
c
>=
'0'
&&
c
<=
'9'
)
c
-=
'0'
;
else
if
(
c
>=
'A'
&&
c
<=
'
F
'
)
else
if
(
c
>=
'A'
&&
c
<=
'
Z
'
)
c
=
c
-
'A'
+
10
;
else
if
(
c
>=
'a'
&&
c
<=
'
f
'
)
else
if
(
c
>=
'a'
&&
c
<=
'
z
'
)
c
=
c
-
'a'
+
10
;
else
break
;
...
...
@@ -622,9 +622,9 @@ ulonglong my_strntoull_8bit(CHARSET_INFO *cs,
{
if
(
c
>=
'0'
&&
c
<=
'9'
)
c
-=
'0'
;
else
if
(
c
>=
'A'
&&
c
<=
'
F
'
)
else
if
(
c
>=
'A'
&&
c
<=
'
Z
'
)
c
=
c
-
'A'
+
10
;
else
if
(
c
>=
'a'
&&
c
<=
'
f
'
)
else
if
(
c
>=
'a'
&&
c
<=
'
z
'
)
c
=
c
-
'a'
+
10
;
else
break
;
...
...
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