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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
10ea2aa9
Commit
10ea2aa9
authored
Nov 26, 2007
by
hhunger@hh-nb.hhunger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
patch for bug#32496 (2nd) with ansi conformant and Mysql test case.
parent
41778b56
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
44 additions
and
12 deletions
+44
-12
.bzrignore
.bzrignore
+2
-0
mysql-test/suite/funcs_1/r/innodb_views.result
mysql-test/suite/funcs_1/r/innodb_views.result
+11
-4
mysql-test/suite/funcs_1/r/memory_views.result
mysql-test/suite/funcs_1/r/memory_views.result
+11
-4
mysql-test/suite/funcs_1/r/myisam_views.result
mysql-test/suite/funcs_1/r/myisam_views.result
+11
-4
mysql-test/suite/funcs_1/views/views_master.inc
mysql-test/suite/funcs_1/views/views_master.inc
+9
-0
No files found.
.bzrignore
View file @
10ea2aa9
...
...
@@ -1351,3 +1351,5 @@ win/vs71cache.txt
win/vs8cache.txt
zlib/*.ds?
zlib/*.vcproj
scripts/make_win_src_distribution_old
server-tools/instance-manager/net_serv.cc
mysql-test/suite/funcs_1/r/innodb_views.result
View file @
10ea2aa9
...
...
@@ -9836,16 +9836,23 @@ f2
two
SET sql_mode = 'traditional,ansi';
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 = ",
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;
ERROR 42000: Incorrect column name 'pure column f3: '
SELECT * FROM v1;
pure column f3:
2.20000
sum of columns f1 + f3 =
4.20000
product of constants 3 * (- 0.11111E+1):
-3.3333
expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR):
->2.20000<-
pure column f3: 2.20000
sum of columns f1 + f3 = 4.20000
product of constants 3 * (- 0.11111E+1): -3.3333
expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): ->2.20000<-
SET sql_mode = '';
Testcases 3.3.1.55 - 3.3.1.62
...
...
mysql-test/suite/funcs_1/r/memory_views.result
View file @
10ea2aa9
...
...
@@ -9841,16 +9841,23 @@ f2
two
SET sql_mode = 'traditional,ansi';
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 = ",
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;
ERROR 42000: Incorrect column name 'pure column f3: '
SELECT * FROM v1;
pure column f3:
2.20000
sum of columns f1 + f3 =
4.20000
product of constants 3 * (- 0.11111E+1):
-3.3333
expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR):
->2.20000<-
pure column f3: 2.20000
sum of columns f1 + f3 = 4.20000
product of constants 3 * (- 0.11111E+1): -3.3333
expression with '||'=CONCAT and CAST(DECIMAL column AS CHAR): ->2.20000<-
SET sql_mode = '';
Testcases 3.3.1.55 - 3.3.1.62
...
...
mysql-test/suite/funcs_1/r/myisam_views.result
View file @
10ea2aa9
No preview for this file type
mysql-test/suite/funcs_1/views/views_master.inc
View file @
10ea2aa9
...
...
@@ -2410,6 +2410,15 @@ SELECT * FROM v1;
# 3.3.1.54
--
vertical_results
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
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): "
,
...
...
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