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
5afdbbda
Commit
5afdbbda
authored
Jul 13, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/dlenev/src/mysql-5.0-mysqlproc
parents
cea87db2
257ba6ae
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
4 deletions
+25
-4
mysql-test/r/func_str.result
mysql-test/r/func_str.result
+3
-0
mysql-test/r/rpl_deadlock.result
mysql-test/r/rpl_deadlock.result
+1
-1
mysql-test/t/func_str.test
mysql-test/t/func_str.test
+5
-0
mysql-test/t/rpl_deadlock.test
mysql-test/t/rpl_deadlock.test
+1
-1
sql/item_strfunc.cc
sql/item_strfunc.cc
+15
-2
No files found.
mysql-test/r/func_str.result
View file @
5afdbbda
...
...
@@ -876,3 +876,6 @@ abc abc c bc abc
abcd abcd d cd bcd abcd
abcde abcde e de cde bcde abcde
drop table t1;
select hex(29223372036854775809), hex(-29223372036854775809);
hex(29223372036854775809) hex(-29223372036854775809)
FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF
mysql-test/r/rpl_deadlock.result
View file @
5afdbbda
...
...
@@ -84,4 +84,4 @@ a
show slave status;
Slave_IO_State Master_Host Master_User Master_Port Connect_Retry Master_Log_File Read_Master_Log_Pos Relay_Log_File Relay_Log_Pos Relay_Master_Log_File Slave_IO_Running Slave_SQL_Running Replicate_Do_DB Replicate_Ignore_DB Replicate_Do_Table Replicate_Ignore_Table Replicate_Wild_Do_Table Replicate_Wild_Ignore_Table Last_Errno Last_Error Skip_Counter Exec_Master_Log_Pos Relay_Log_Space Until_Condition Until_Log_File Until_Log_Pos Master_SSL_Allowed Master_SSL_CA_File Master_SSL_CA_Path Master_SSL_Cert Master_SSL_Cipher Master_SSL_Key Seconds_Behind_Master
# 127.0.0.1 root MASTER_MYPORT 1 master-bin.000001 18911 # # master-bin.000001 Yes Yes 0 0 18911 # None 0 No #
drop table t1,t2;
drop table t1,t2
,t3,t4
;
mysql-test/t/func_str.test
View file @
5afdbbda
...
...
@@ -608,3 +608,8 @@ insert t1 values ('ab'), ('abc'), ('abcd'), ('abcde');
select
*
,
substring
(
b
,
1
),
substring
(
b
,
-
1
),
substring
(
b
,
-
2
),
substring
(
b
,
-
3
),
substring
(
b
,
-
4
),
substring
(
b
,
-
5
)
from
t1
;
select
*
from
(
select
*
,
substring
(
b
,
1
),
substring
(
b
,
-
1
),
substring
(
b
,
-
2
),
substring
(
b
,
-
3
),
substring
(
b
,
-
4
),
substring
(
b
,
-
5
)
from
t1
)
t
;
drop
table
t1
;
#
# Bug #9854 hex() and out of range handling
#
select
hex
(
29223372036854775809
),
hex
(
-
29223372036854775809
);
mysql-test/t/rpl_deadlock.test
View file @
5afdbbda
...
...
@@ -107,5 +107,5 @@ select * from t2;
show
slave
status
;
connection
master
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
,
t3
,
t4
;
sync_slave_with_master
;
sql/item_strfunc.cc
View file @
5afdbbda
...
...
@@ -2380,9 +2380,22 @@ String *Item_func_hex::val_str(String *str)
DBUG_ASSERT
(
fixed
==
1
);
if
(
args
[
0
]
->
result_type
()
!=
STRING_RESULT
)
{
/* Return hex of unsigned longlong value */
longlong
dec
=
args
[
0
]
->
val_int
();
ulonglong
dec
;
char
ans
[
65
],
*
ptr
;
/* Return hex of unsigned longlong value */
if
(
args
[
0
]
->
result_type
()
==
REAL_RESULT
||
args
[
0
]
->
result_type
()
==
DECIMAL_RESULT
)
{
double
val
=
args
[
0
]
->
val_real
();
if
((
val
<=
(
double
)
LONGLONG_MIN
)
||
(
val
>=
(
double
)
(
ulonglong
)
ULONGLONG_MAX
))
dec
=
~
(
longlong
)
0
;
else
dec
=
(
ulonglong
)
(
val
+
(
val
>
0
?
0.5
:
-
0.5
));
}
else
dec
=
(
ulonglong
)
args
[
0
]
->
val_int
();
if
((
null_value
=
args
[
0
]
->
null_value
))
return
0
;
ptr
=
longlong2str
(
dec
,
ans
,
16
);
...
...
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