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
3e03b3dc
Commit
3e03b3dc
authored
May 26, 2018
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extended vcol.update with checking if statement worked
parent
afbea676
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
mysql-test/suite/vcol/r/update.result
mysql-test/suite/vcol/r/update.result
+12
-0
mysql-test/suite/vcol/t/update.test
mysql-test/suite/vcol/t/update.test
+2
-0
No files found.
mysql-test/suite/vcol/r/update.result
View file @
3e03b3dc
...
...
@@ -9,8 +9,20 @@ a b c
2 3 4
drop table t1;
create table t1 (a int, c int as(a), p varchar(20) as(y), y char(20), index (p,c));
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL,
`c` int(11) GENERATED ALWAYS AS (`a`) VIRTUAL,
`p` varchar(20) GENERATED ALWAYS AS (`y`) VIRTUAL,
`y` char(20) DEFAULT NULL,
KEY `p` (`p`,`c`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
insert into t1 (a,y) values(1, "yyy");
update t1 set a = 100 where a = 1;
check table t1;
Table Op Msg_type Msg_text
test.t1 check status OK
drop table t1;
create table t1 (
a varchar(10000),
...
...
mysql-test/suite/vcol/t/update.test
View file @
3e03b3dc
...
...
@@ -15,8 +15,10 @@ drop table t1;
# this tests TABLE::mark_columns_needed_for_update()
#
create
table
t1
(
a
int
,
c
int
as
(
a
),
p
varchar
(
20
)
as
(
y
),
y
char
(
20
),
index
(
p
,
c
));
show
create
table
t1
;
insert
into
t1
(
a
,
y
)
values
(
1
,
"yyy"
);
update
t1
set
a
=
100
where
a
=
1
;
check
table
t1
;
drop
table
t1
;
#
...
...
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