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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
55acf8e8
Commit
55acf8e8
authored
May 24, 2013
by
Rich Prohaska
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#22 add a test for upsert values expr
parent
ef676263
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
mysql-test/suite/tokudb/r/fast_upsert_values.result
mysql-test/suite/tokudb/r/fast_upsert_values.result
+15
-0
mysql-test/suite/tokudb/t/fast_upsert_values.test
mysql-test/suite/tokudb/t/fast_upsert_values.test
+26
-0
No files found.
mysql-test/suite/tokudb/r/fast_upsert_values.result
0 → 100644
View file @
55acf8e8
set default_storage_engine='tokudb';
drop table if exists t;
set tokudb_disable_slow_upsert=1;
create table t (id int primary key, x int not null);
insert noar into t values (1,42);
insert noar into t values (1,42) on duplicate key update x=x+1;
select * from t;
id x
1 43
insert noar into t values (1,42) on duplicate key update x=values(x)+1;
ERROR 42000: Table 't' uses an extension that doesn't exist in this XYZ version
select * from t;
id x
1 43
drop table t;
mysql-test/suite/tokudb/t/fast_upsert_values.test
0 → 100644
View file @
55acf8e8
# verify that values(x) works in update expression
source
include
/
have_tokudb
.
inc
;
set
default_storage_engine
=
'tokudb'
;
disable_warnings
;
drop
table
if
exists
t
;
enable_warnings
;
set
tokudb_disable_slow_upsert
=
1
;
create
table
t
(
id
int
primary
key
,
x
int
not
null
);
insert
noar
into
t
values
(
1
,
42
);
insert
noar
into
t
values
(
1
,
42
)
on
duplicate
key
update
x
=
x
+
1
;
select
*
from
t
;
replace_regex
/
MariaDB
/
XYZ
/
/
MySQL
/
XYZ
/
;
error
ER_UNSUPPORTED_EXTENSION
;
insert
noar
into
t
values
(
1
,
42
)
on
duplicate
key
update
x
=
values
(
x
)
+
1
;
select
*
from
t
;
drop
table
t
;
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