summaryrefslogtreecommitdiff
path: root/mysql-test/t/select.test
diff options
context:
space:
mode:
authorevgen@moonbone.local <>2006-07-16 00:45:38 +0400
committerevgen@moonbone.local <>2006-07-16 00:45:38 +0400
commitf1346cf8f6f8d6f557168572c59de7cf58b4ef4f (patch)
treee461b7d2c3a29dd54448d57d1c11a56487facb0d /mysql-test/t/select.test
parent10b2590c0b8a0d766f1b15330f3d9681aa41f9aa (diff)
downloadmariadb-git-f1346cf8f6f8d6f557168572c59de7cf58b4ef4f.tar.gz
Fixed bug#10977: No warning issued if a column name is truncated
When an alias is set to a column leading spaces are removed from the alias. But when this is done on aliases set by user this can lead to confusion. Now Item::set_name() method issues the warning if leading spaces were removed from an alias set by user. New warning message is added.
Diffstat (limited to 'mysql-test/t/select.test')
-rw-r--r--mysql-test/t/select.test5
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/select.test b/mysql-test/t/select.test
index b44f682c02e..ac5c121550a 100644
--- a/mysql-test/t/select.test
+++ b/mysql-test/t/select.test
@@ -2906,3 +2906,8 @@ drop table t1,t2;
# Bug #20569: Garbage in DECIMAL results from some mathematical functions
#
SELECT 0.9888889889 * 1.011111411911;
+
+#
+# Bug #10977: No warning issued if a column name is truncated
+#
+select 1 as ' a ';