Commit ab12b266 authored by hhunger@hh-nb.hhunger's avatar hhunger@hh-nb.hhunger

Merge hh-nb.hhunger:/work/trees/mysql-5.1-build-src-clean

into  hh-nb.hhunger:/work/merge/mysql-5.1-build
parents 5ed3fdea aa30bc51
...@@ -1845,6 +1845,7 @@ scripts/make_binary_distribution ...@@ -1845,6 +1845,7 @@ scripts/make_binary_distribution
scripts/make_sharedlib_distribution scripts/make_sharedlib_distribution
scripts/make_win_binary_distribution scripts/make_win_binary_distribution
scripts/make_win_src_distribution scripts/make_win_src_distribution
scripts/make_win_src_distribution_old
scripts/msql2mysql scripts/msql2mysql
scripts/mysql_config scripts/mysql_config
scripts/mysql_convert_table_format scripts/mysql_convert_table_format
......
...@@ -9886,11 +9886,18 @@ f2 ...@@ -9886,11 +9886,18 @@ f2
two two
SET sql_mode = 'traditional,ansi'; SET sql_mode = 'traditional,ansi';
CREATE OR REPLACE VIEW v1 AS CREATE OR REPLACE VIEW v1 AS
SELECT f3 AS "pure column f3:", f1 + f3 AS "sum of columns f1 + f3 =",
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1):",
'->' || CAST(f3 AS CHAR) || '<-'
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR):"
FROM t1 WHERE f1 = 2;
CREATE OR REPLACE VIEW v1 AS
SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ", SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ",
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ", 3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ",
'->' || CAST(f3 AS CHAR) || '<-' '->' || CAST(f3 AS CHAR) || '<-'
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): " AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): "
FROM t1 WHERE f1 = 2; FROM t1 WHERE f1 = 2;
ERROR 42000: Incorrect column name 'pure column f3: '
SELECT * FROM v1; SELECT * FROM v1;
pure column f3: 2.20000 pure column f3: 2.20000
sum of columns f1 + f3 = 4.20000 sum of columns f1 + f3 = 4.20000
......
...@@ -9891,11 +9891,18 @@ f2 ...@@ -9891,11 +9891,18 @@ f2
two two
SET sql_mode = 'traditional,ansi'; SET sql_mode = 'traditional,ansi';
CREATE OR REPLACE VIEW v1 AS CREATE OR REPLACE VIEW v1 AS
SELECT f3 AS "pure column f3:", f1 + f3 AS "sum of columns f1 + f3 =",
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1):",
'->' || CAST(f3 AS CHAR) || '<-'
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR):"
FROM t1 WHERE f1 = 2;
CREATE OR REPLACE VIEW v1 AS
SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ", SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ",
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ", 3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ",
'->' || CAST(f3 AS CHAR) || '<-' '->' || CAST(f3 AS CHAR) || '<-'
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): " AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): "
FROM t1 WHERE f1 = 2; FROM t1 WHERE f1 = 2;
ERROR 42000: Incorrect column name 'pure column f3: '
SELECT * FROM v1; SELECT * FROM v1;
pure column f3: 2.20000 pure column f3: 2.20000
sum of columns f1 + f3 = 4.20000 sum of columns f1 + f3 = 4.20000
......
...@@ -9886,11 +9886,18 @@ f2 ...@@ -9886,11 +9886,18 @@ f2
two two
SET sql_mode = 'traditional,ansi'; SET sql_mode = 'traditional,ansi';
CREATE OR REPLACE VIEW v1 AS CREATE OR REPLACE VIEW v1 AS
SELECT f3 AS "pure column f3:", f1 + f3 AS "sum of columns f1 + f3 =",
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1):",
'->' || CAST(f3 AS CHAR) || '<-'
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR):"
FROM t1 WHERE f1 = 2;
CREATE OR REPLACE VIEW v1 AS
SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ", SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ",
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ", 3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ",
'->' || CAST(f3 AS CHAR) || '<-' '->' || CAST(f3 AS CHAR) || '<-'
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): " AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): "
FROM t1 WHERE f1 = 2; FROM t1 WHERE f1 = 2;
ERROR 42000: Incorrect column name 'pure column f3: '
SELECT * FROM v1; SELECT * FROM v1;
pure column f3: 2.20000 pure column f3: 2.20000
sum of columns f1 + f3 = 4.20000 sum of columns f1 + f3 = 4.20000
......
...@@ -2415,6 +2415,15 @@ SELECT * FROM v1; ...@@ -2415,6 +2415,15 @@ SELECT * FROM v1;
# 3.3.1.54 # 3.3.1.54
--vertical_results --vertical_results
SET sql_mode = 'traditional,ansi'; SET sql_mode = 'traditional,ansi';
# due to bug#32496 "no trailing blanks in identifier".
CREATE OR REPLACE VIEW v1 AS
SELECT f3 AS "pure column f3:", f1 + f3 AS "sum of columns f1 + f3 =",
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1):",
'->' || CAST(f3 AS CHAR) || '<-'
AS "expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR):"
FROM t1 WHERE f1 = 2;
# This error is not conformant with ansi (see bug#32496). hhunger
--error ER_WRONG_COLUMN_NAME
CREATE OR REPLACE VIEW v1 AS CREATE OR REPLACE VIEW v1 AS
SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ", SELECT f3 AS "pure column f3: ", f1 + f3 AS "sum of columns f1 + f3 = ",
3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ", 3 * (- 0.11111E+1) AS "product of constants 3 * (- 0.11111E+1): ",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment