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
d035e5c8
Commit
d035e5c8
authored
Oct 23, 2007
by
ramil/ram@ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/mysql-5.0-maint
into mysql.com:/home/ram/work/b31349/b31349.5.0
parents
c54e1855
b4f55841
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
mysql-test/r/func_misc.result
mysql-test/r/func_misc.result
+6
-0
mysql-test/t/func_misc.test
mysql-test/t/func_misc.test
+8
-0
sql/item_strfunc.h
sql/item_strfunc.h
+6
-1
No files found.
mysql-test/r/func_misc.result
View file @
d035e5c8
...
...
@@ -185,4 +185,10 @@ ERROR 21000: Operand should contain 1 column(s)
drop table table_26093;
drop function func_26093_a;
drop function func_26093_b;
create table t1 (a int not null);
insert into t1 values (-1), (-2);
select min(a) from t1 group by inet_ntoa(a);
min(a)
-2
drop table t1;
End of 5.0 tests
mysql-test/t/func_misc.test
View file @
d035e5c8
...
...
@@ -189,4 +189,12 @@ drop table table_26093;
drop
function
func_26093_a
;
drop
function
func_26093_b
;
#
# Bug #31349: ERROR 1062 (23000): Duplicate entry '' for key 'group_key'
#
create
table
t1
(
a
int
not
null
);
insert
into
t1
values
(
-
1
),
(
-
2
);
select
min
(
a
)
from
t1
group
by
inet_ntoa
(
a
);
drop
table
t1
;
--
echo
End
of
5.0
tests
sql/item_strfunc.h
View file @
d035e5c8
...
...
@@ -683,7 +683,12 @@ public:
}
String
*
val_str
(
String
*
str
);
const
char
*
func_name
()
const
{
return
"inet_ntoa"
;
}
void
fix_length_and_dec
()
{
decimals
=
0
;
max_length
=
3
*
8
+
7
;
}
void
fix_length_and_dec
()
{
decimals
=
0
;
max_length
=
3
*
8
+
7
;
maybe_null
=
1
;
}
};
class
Item_func_quote
:
public
Item_str_func
...
...
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