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
5fc6724e
Commit
5fc6724e
authored
Jul 21, 2010
by
Igor Babaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
c9cff0bd
a601dc05
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
mysql-test/suite/vcol/r/vcol_misc.result
mysql-test/suite/vcol/r/vcol_misc.result
+8
-0
mysql-test/suite/vcol/t/vcol_misc.test
mysql-test/suite/vcol/t/vcol_misc.test
+10
-0
sql/sql_select.cc
sql/sql_select.cc
+2
-0
No files found.
mysql-test/suite/vcol/r/vcol_misc.result
View file @
5fc6724e
...
...
@@ -97,3 +97,11 @@ v
yz
YZ
DROP TABLE t1;
CREATE TABLE t1 (f1 INTEGER, v1 INTEGER AS (f1) VIRTUAL);
CREATE TABLE t2 AS SELECT v1 FROM t1;
SHOW CREATE TABLE t2;
Table Create Table
t2 CREATE TABLE `t2` (
`v1` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1,t2;
mysql-test/suite/vcol/t/vcol_misc.test
View file @
5fc6724e
...
...
@@ -102,3 +102,13 @@ INSERT INTO t1(a,b,c,d) VALUES ('w','x','y','z'), ('W','X','Y','Z');
SELECT
v
FROM
t1
ORDER
BY
CONCAT
(
a
,
b
);
DROP
TABLE
t1
;
#
# Bug#607168: CREATE TABLE AS SELECT that returns virtual columns
#
CREATE
TABLE
t1
(
f1
INTEGER
,
v1
INTEGER
AS
(
f1
)
VIRTUAL
);
CREATE
TABLE
t2
AS
SELECT
v1
FROM
t1
;
SHOW
CREATE
TABLE
t2
;
DROP
TABLE
t1
,
t2
;
sql/sql_select.cc
View file @
5fc6724e
...
...
@@ -9564,6 +9564,8 @@ Field *create_tmp_field_from_field(THD *thd, Field *org_field,
table
->
s
->
db_create_options
|=
HA_OPTION_PACK_RECORD
;
else
if
(
org_field
->
type
()
==
FIELD_TYPE_DOUBLE
)
((
Field_double
*
)
new_field
)
->
not_fixed
=
TRUE
;
new_field
->
vcol_info
=
0
;
new_field
->
stored_in_db
=
TRUE
;
}
return
new_field
;
}
...
...
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