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
db5283b3
Commit
db5283b3
authored
Jul 03, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.0
into deer.(none):/home/hf/work/mysql-4.0.739
parents
1f0d4704
33c416f6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletion
+25
-1
mysql-test/r/func_str.result
mysql-test/r/func_str.result
+10
-0
mysql-test/t/func_str.test
mysql-test/t/func_str.test
+14
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+1
-1
No files found.
mysql-test/r/func_str.result
View file @
db5283b3
...
...
@@ -247,3 +247,13 @@ elt(status_wnio,data_podp)
NULL
NULL
DROP TABLE t1;
CREATE TABLE t1 (
title text
) TYPE=MyISAM;
INSERT INTO t1 VALUES ('Congress reconvenes in September to debate welfare and adult education');
INSERT INTO t1 VALUES ('House passes the CAREERS bill');
SELECT CONCAT("</a>",RPAD("",(55 - LENGTH(title)),".")) from t1;
CONCAT("</a>",RPAD("",(55 - LENGTH(title)),"."))
NULL
</a>..........................
DROP TABLE t1;
mysql-test/t/func_str.test
View file @
db5283b3
...
...
@@ -137,3 +137,17 @@ INSERT INTO t1 VALUES (8,NULL,'real');
INSERT
INTO
t1
VALUES
(
9
,
NULL
,
'nowy'
);
SELECT
elt
(
status_wnio
,
data_podp
)
FROM
t1
GROUP
BY
wid
;
DROP
TABLE
t1
;
#
# test for #739
CREATE
TABLE
t1
(
title
text
)
TYPE
=
MyISAM
;
INSERT
INTO
t1
VALUES
(
'Congress reconvenes in September to debate welfare and adult education'
);
INSERT
INTO
t1
VALUES
(
'House passes the CAREERS bill'
);
SELECT
CONCAT
(
"</a>"
,
RPAD
(
""
,(
55
-
LENGTH
(
title
)),
"."
))
from
t1
;
DROP
TABLE
t1
;
sql/item_strfunc.cc
View file @
db5283b3
...
...
@@ -1804,7 +1804,7 @@ String *Item_func_rpad::val_str(String *str)
String
*
res
=
args
[
0
]
->
val_str
(
str
);
String
*
rpad
=
args
[
2
]
->
val_str
(
str
);
if
(
!
res
||
args
[
1
]
->
null_value
||
!
rpad
)
if
(
!
res
||
args
[
1
]
->
null_value
||
!
rpad
||
count
<
0
)
goto
err
;
null_value
=
0
;
if
(
count
<=
(
int32
)
(
res_length
=
res
->
length
()))
...
...
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