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
a9987ffd
Commit
a9987ffd
authored
Sep 14, 2007
by
gshchepa@devsrv-b.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge devsrv-b.mysql.com:/data0/gshchepa/mysql-5.0-opt
into devsrv-b.mysql.com:/data0/gshchepa/mysql-5.1-opt
parents
0b7e4b4d
e6e56ccc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
66 additions
and
4 deletions
+66
-4
mysql-test/r/select.result
mysql-test/r/select.result
+34
-0
mysql-test/t/select.test
mysql-test/t/select.test
+20
-0
sql/item.cc
sql/item.cc
+10
-4
sql/share/errmsg.txt
sql/share/errmsg.txt
+2
-0
No files found.
mysql-test/r/select.result
View file @
a9987ffd
...
@@ -4047,4 +4047,38 @@ SHOW WARNINGS;
...
@@ -4047,4 +4047,38 @@ SHOW WARNINGS;
Level Code Message
Level Code Message
Note 1003 select '0' AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by '0','0','0','0','0'
Note 1003 select '0' AS `c1` from `test`.`t1` `join_0` join `test`.`t1` `join_1` join `test`.`t1` `join_2` join `test`.`t1` `join_3` join `test`.`t1` `join_4` join `test`.`t1` `join_5` join `test`.`t1` `join_6` join `test`.`t1` `join_7` where 0 group by '0','0','0','0','0'
DROP TABLE t1;
DROP TABLE t1;
SELECT 1 AS ` `;
1
Warnings:
Warning 1474 Name ' ' has become ''
SELECT 1 AS ` `;
1
Warnings:
Warning 1474 Name ' ' has become ''
SELECT 1 AS ` x`;
x
1
Warnings:
Warning 1466 Leading spaces are removed from name ' x'
CREATE VIEW v1 AS SELECT 1 AS ` `;
Warnings:
Warning 1474 Name ' ' has become ''
SELECT `` FROM v1;
1
CREATE VIEW v2 AS SELECT 1 AS ` `;
Warnings:
Warning 1474 Name ' ' has become ''
SELECT `` FROM v2;
1
CREATE VIEW v3 AS SELECT 1 AS ` x`;
Warnings:
Warning 1466 Leading spaces are removed from name ' x'
SELECT `x` FROM v3;
x
1
DROP VIEW v1, v2, v3;
End of 5.0 tests
End of 5.0 tests
mysql-test/t/select.test
View file @
a9987ffd
...
@@ -3449,4 +3449,24 @@ SHOW WARNINGS;
...
@@ -3449,4 +3449,24 @@ SHOW WARNINGS;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug #27695: Misleading warning when declaring all space column names and
# truncation of one-space column names to zero length names.
#
SELECT
1
AS
` `
;
SELECT
1
AS
` `
;
SELECT
1
AS
` x`
;
CREATE
VIEW
v1
AS
SELECT
1
AS
` `
;
SELECT
``
FROM
v1
;
CREATE
VIEW
v2
AS
SELECT
1
AS
` `
;
SELECT
``
FROM
v2
;
CREATE
VIEW
v3
AS
SELECT
1
AS
` x`
;
SELECT
`x`
FROM
v3
;
DROP
VIEW
v1
,
v2
,
v3
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
sql/item.cc
View file @
a9987ffd
...
@@ -715,10 +715,16 @@ void Item::set_name(const char *str, uint length, CHARSET_INFO *cs)
...
@@ -715,10 +715,16 @@ void Item::set_name(const char *str, uint length, CHARSET_INFO *cs)
str
++
;
str
++
;
}
}
if
(
orig_len
!=
length
&&
!
is_autogenerated_name
)
if
(
orig_len
!=
length
&&
!
is_autogenerated_name
)
{
if
(
length
==
0
)
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_NAME_BECOMES_EMPTY
,
ER
(
ER_NAME_BECOMES_EMPTY
),
str
+
length
-
orig_len
);
else
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
push_warning_printf
(
current_thd
,
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
ER_REMOVED_SPACES
,
ER
(
ER_REMOVED_SPACES
),
ER_REMOVED_SPACES
,
ER
(
ER_REMOVED_SPACES
),
str
+
length
-
orig_len
);
str
+
length
-
orig_len
);
}
}
}
if
(
!
my_charset_same
(
cs
,
system_charset_info
))
if
(
!
my_charset_same
(
cs
,
system_charset_info
))
{
{
...
...
sql/share/errmsg.txt
View file @
a9987ffd
...
@@ -5656,6 +5656,8 @@ ER_ADMIN_WRONG_MRG_TABLE
...
@@ -5656,6 +5656,8 @@ ER_ADMIN_WRONG_MRG_TABLE
eng "Table '%-.64s' is differently defined or of non-MyISAM type or doesn't exist"
eng "Table '%-.64s' is differently defined or of non-MyISAM type or doesn't exist"
ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT
ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT
eng "Too high level of nesting for select"
eng "Too high level of nesting for select"
ER_NAME_BECOMES_EMPTY
eng "Name '%-.64s' has become ''"
ER_FOREIGN_SERVER_EXISTS
ER_FOREIGN_SERVER_EXISTS
eng "The foreign server, %s, you are trying to create already exists."
eng "The foreign server, %s, you are trying to create already exists."
ER_FOREIGN_SERVER_DOESNT_EXIST
ER_FOREIGN_SERVER_DOESNT_EXIST
...
...
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