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
edf7a7b1
Commit
edf7a7b1
authored
Jan 22, 2004
by
vva@eagle.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some ammendments (comments and code style)
parent
4a668f95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
mysql-test/t/func_str.test
mysql-test/t/func_str.test
+1
-1
sql/item_strfunc.cc
sql/item_strfunc.cc
+8
-1
No files found.
mysql-test/t/func_str.test
View file @
edf7a7b1
...
...
@@ -162,4 +162,4 @@ DROP TABLE t1;
CREATE
TABLE
t1
(
i
int
,
j
int
);
INSERT
INTO
t1
VALUES
(
1
,
1
),(
2
,
2
);
SELECT
DISTINCT
i
,
ELT
(
j
,
'345'
,
'34'
)
FROM
t1
;
DROP
TABLE
t1
;
\ No newline at end of file
DROP
TABLE
t1
;
sql/item_strfunc.cc
View file @
edf7a7b1
...
...
@@ -1507,7 +1507,14 @@ void Item_func_elt::fix_length_and_dec()
{
max_length
=
0
;
decimals
=
0
;
for
(
uint
i
=
0
;
i
<
arg_count
;
i
++
)
// first number argument isn't in list!
/*
first numeric argument isn't in args (3.23 and 4.0)
but since 4.1 the cycle should start from 1
so this change
should NOT be merged into 4.1!!!
*/
for
(
uint
i
=
0
;
i
<
arg_count
;
i
++
)
{
set_if_bigger
(
max_length
,
args
[
i
]
->
max_length
);
set_if_bigger
(
decimals
,
args
[
i
]
->
decimals
);
...
...
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