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
1be89333
Commit
1be89333
authored
Mar 15, 2006
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed storage engine to be ndb
parent
3d831d34
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
mysql-test/r/ndb_partition_list.result
mysql-test/r/ndb_partition_list.result
+2
-0
mysql-test/t/ndb_partition_list.test
mysql-test/t/ndb_partition_list.test
+3
-1
No files found.
mysql-test/r/ndb_partition_list.result
View file @
1be89333
...
...
@@ -3,6 +3,7 @@ CREATE TABLE t1 ( f_int1 INTEGER NOT NULL, f_int2 INTEGER NOT NULL,
f_char1 CHAR(10),
f_char2 CHAR(10), f_charbig VARCHAR(1000),
PRIMARY KEY (f_int1,f_int2))
ENGINE = NDB
PARTITION BY LIST(MOD(f_int1 + f_int2,4))
(PARTITION part_3 VALUES IN (-3),
PARTITION part_2 VALUES IN (-2),
...
...
@@ -30,6 +31,7 @@ f_int1 f_int2 f_char1 f_char2 f_charbig
DROP TABLE t1;
CREATE TABLE t1 ( f_int1 INTEGER, f_int2 INTEGER, f_char1 CHAR(10),
f_char2 CHAR(10), f_charbig VARCHAR(1000))
ENGINE = NDB
PARTITION BY LIST(f_int1)
(PARTITION part_1 VALUES IN (-1),
PARTITION part0 VALUES IN (0,1),
...
...
mysql-test/t/ndb_partition_list.test
View file @
1be89333
...
...
@@ -17,6 +17,7 @@ CREATE TABLE t1 ( f_int1 INTEGER NOT NULL, f_int2 INTEGER NOT NULL,
f_char1
CHAR
(
10
),
f_char2
CHAR
(
10
),
f_charbig
VARCHAR
(
1000
),
PRIMARY
KEY
(
f_int1
,
f_int2
))
ENGINE
=
NDB
PARTITION
BY
LIST
(
MOD
(
f_int1
+
f_int2
,
4
))
(
PARTITION
part_3
VALUES
IN
(
-
3
),
PARTITION
part_2
VALUES
IN
(
-
2
),
...
...
@@ -44,6 +45,7 @@ DROP TABLE t1;
CREATE
TABLE
t1
(
f_int1
INTEGER
,
f_int2
INTEGER
,
f_char1
CHAR
(
10
),
f_char2
CHAR
(
10
),
f_charbig
VARCHAR
(
1000
))
ENGINE
=
NDB
PARTITION
BY
LIST
(
f_int1
)
(
PARTITION
part_1
VALUES
IN
(
-
1
),
PARTITION
part0
VALUES
IN
(
0
,
1
),
...
...
@@ -53,7 +55,7 @@ INSERT INTO t1 SET f_int1 = -1, f_int2 = 20, f_char1 = '20', f_char2 = '20', f_c
INSERT
INTO
t1
SET
f_int1
=
0
,
f_int2
=
20
,
f_char1
=
'20'
,
f_char2
=
'20'
,
f_charbig
=
'===20==='
;
INSERT
INTO
t1
SET
f_int1
=
1
,
f_int2
=
1
,
f_char1
=
'1'
,
f_char2
=
'1'
,
f_charbig
=
'===1==='
;
INSERT
INTO
t1
SET
f_int1
=
2
,
f_int2
=
1
,
f_char1
=
'1'
,
f_char2
=
'1'
,
f_charbig
=
'===1==='
;
--
error
150
4
--
error
150
5
INSERT
INTO
t1
SET
f_int1
=
20
,
f_int2
=
1
,
f_char1
=
'1'
,
f_char2
=
'1'
,
f_charbig
=
'===1==='
;
SELECT
*
FROM
t1
ORDER
BY
f_int1
;
...
...
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