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
57c890d5
Commit
57c890d5
authored
Dec 10, 2007
by
tomas@whalegate.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge whalegate.ndb.mysql.com:/home/tomas/cge-5.1
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb-merge
parents
53dabdd3
4740565e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
66 additions
and
24 deletions
+66
-24
mysql-test/extra/rpl_tests/rpl_extraMaster_Col.test
mysql-test/extra/rpl_tests/rpl_extraMaster_Col.test
+1
-8
mysql-test/suite/ndb/r/ndb_blob.result
mysql-test/suite/ndb/r/ndb_blob.result
+21
-0
mysql-test/suite/ndb/t/ndb_blob.test
mysql-test/suite/ndb/t/ndb_blob.test
+20
-0
mysql-test/suite/rpl/r/rpl_extraColmaster_innodb.result
mysql-test/suite/rpl/r/rpl_extraColmaster_innodb.result
+9
-6
mysql-test/suite/rpl/r/rpl_extraColmaster_myisam.result
mysql-test/suite/rpl/r/rpl_extraColmaster_myisam.result
+9
-6
mysql-test/suite/rpl_ndb/r/rpl_ndb_extraColMaster.result
mysql-test/suite/rpl_ndb/r/rpl_ndb_extraColMaster.result
+6
-4
No files found.
mysql-test/extra/rpl_tests/rpl_extraMaster_Col.test
View file @
57c890d5
...
@@ -973,14 +973,7 @@ SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
...
@@ -973,14 +973,7 @@ SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
--
echo
--
echo
--
echo
**
update
from
master
**
--
echo
**
update
from
master
**
connection
master
;
connection
master
;
#######################################
UPDATE
t18
SET
c5
=
'TEST'
WHERE
c6
=
3
;
# This test should be uncommented
# once bug30674 is patched
#######################################
#***************************
#UPDATE t18 SET c5 = 'TEST' WHERE c6 = 3;
#***************************
--
replace_column
5
CURRENT_TIMESTAMP
--
replace_column
5
CURRENT_TIMESTAMP
SELECT
c1
,
hex
(
c4
),
c5
,
c6
,
c7
FROM
t18
ORDER
BY
c1
;
SELECT
c1
,
hex
(
c4
),
c5
,
c6
,
c7
FROM
t18
ORDER
BY
c1
;
...
...
mysql-test/suite/ndb/r/ndb_blob.result
View file @
57c890d5
...
@@ -568,3 +568,24 @@ select count(*) from t1;
...
@@ -568,3 +568,24 @@ select count(*) from t1;
count(*)
count(*)
0
0
drop table t1;
drop table t1;
create table t1(
a int,
blob_nn blob not null,
text_nn text not null,
blob_nl blob,
text_nl text,
primary key(a)
) engine=ndb;
insert into t1(a) values (1);
Warnings:
Warning 1364 Field 'blob_nn' doesn't have a default value
Warning 1364 Field 'text_nn' doesn't have a default value
insert into t1(a, text_nl) values (2, 'MySQL Cluster NDB');
Warnings:
Warning 1364 Field 'blob_nn' doesn't have a default value
Warning 1364 Field 'text_nn' doesn't have a default value
select a, length(blob_nn), length(text_nn), blob_nl, text_nl from t1 order by a;
a length(blob_nn) length(text_nn) blob_nl text_nl
1 0 0 NULL NULL
2 0 0 NULL MySQL Cluster NDB
drop table t1;
mysql-test/suite/ndb/t/ndb_blob.test
View file @
57c890d5
...
@@ -497,3 +497,23 @@ select count(*) from t1;
...
@@ -497,3 +497,23 @@ select count(*) from t1;
drop
table
t1
;
drop
table
t1
;
# End of 4.1 tests
# End of 4.1 tests
# bug # 30674 :
# NOT NULL Blobs should default to zero-length. Not NULL TEXT
# should default to zero-chars
create
table
t1
(
a
int
,
blob_nn
blob
not
null
,
text_nn
text
not
null
,
blob_nl
blob
,
text_nl
text
,
primary
key
(
a
)
)
engine
=
ndb
;
insert
into
t1
(
a
)
values
(
1
);
insert
into
t1
(
a
,
text_nl
)
values
(
2
,
'MySQL Cluster NDB'
);
select
a
,
length
(
blob_nn
),
length
(
text_nn
),
blob_nl
,
text_nl
from
t1
order
by
a
;
drop
table
t1
;
mysql-test/suite/rpl/r/rpl_extraColmaster_innodb.result
View file @
57c890d5
...
@@ -1089,18 +1089,19 @@ c1 hex(c4) c5
...
@@ -1089,18 +1089,19 @@ c1 hex(c4) c5
3 62316231623162316231623162316231 QA
3 62316231623162316231623162316231 QA
** update from master **
** update from master **
UPDATE t18 SET c5 = 'TEST' WHERE c6 = 3;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
c1 hex(c4) c5 c6 c7
c1 hex(c4) c5 c6 c7
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
QA
3 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
TEST
3 CURRENT_TIMESTAMP
** Check slave **
** Check slave **
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
c1 hex(c4) c5
c1 hex(c4) c5
1 62316231623162316231623162316231 Kyle
1 62316231623162316231623162316231 Kyle
2 62316231623162316231623162316231 JOE
2 62316231623162316231623162316231 JOE
3 62316231623162316231623162316231
QA
3 62316231623162316231623162316231
TEST
DROP TABLE t18;
DROP TABLE t18;
...
@@ -2229,18 +2230,19 @@ c1 hex(c4) c5
...
@@ -2229,18 +2230,19 @@ c1 hex(c4) c5
3 62316231623162316231623162316231 QA
3 62316231623162316231623162316231 QA
** update from master **
** update from master **
UPDATE t18 SET c5 = 'TEST' WHERE c6 = 3;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
c1 hex(c4) c5 c6 c7
c1 hex(c4) c5 c6 c7
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
QA
3 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
TEST
3 CURRENT_TIMESTAMP
** Check slave **
** Check slave **
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
c1 hex(c4) c5
c1 hex(c4) c5
1 62316231623162316231623162316231 Kyle
1 62316231623162316231623162316231 Kyle
2 62316231623162316231623162316231 JOE
2 62316231623162316231623162316231 JOE
3 62316231623162316231623162316231
QA
3 62316231623162316231623162316231
TEST
DROP TABLE t18;
DROP TABLE t18;
...
@@ -3369,18 +3371,19 @@ c1 hex(c4) c5
...
@@ -3369,18 +3371,19 @@ c1 hex(c4) c5
3 62316231623162316231623162316231 QA
3 62316231623162316231623162316231 QA
** update from master **
** update from master **
UPDATE t18 SET c5 = 'TEST' WHERE c6 = 3;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
c1 hex(c4) c5 c6 c7
c1 hex(c4) c5 c6 c7
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
QA
3 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
TEST
3 CURRENT_TIMESTAMP
** Check slave **
** Check slave **
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
c1 hex(c4) c5
c1 hex(c4) c5
1 62316231623162316231623162316231 Kyle
1 62316231623162316231623162316231 Kyle
2 62316231623162316231623162316231 JOE
2 62316231623162316231623162316231 JOE
3 62316231623162316231623162316231
QA
3 62316231623162316231623162316231
TEST
DROP TABLE t18;
DROP TABLE t18;
...
...
mysql-test/suite/rpl/r/rpl_extraColmaster_myisam.result
View file @
57c890d5
...
@@ -1089,18 +1089,19 @@ c1 hex(c4) c5
...
@@ -1089,18 +1089,19 @@ c1 hex(c4) c5
3 62316231623162316231623162316231 QA
3 62316231623162316231623162316231 QA
** update from master **
** update from master **
UPDATE t18 SET c5 = 'TEST' WHERE c6 = 3;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
c1 hex(c4) c5 c6 c7
c1 hex(c4) c5 c6 c7
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
QA
3 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
TEST
3 CURRENT_TIMESTAMP
** Check slave **
** Check slave **
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
c1 hex(c4) c5
c1 hex(c4) c5
1 62316231623162316231623162316231 Kyle
1 62316231623162316231623162316231 Kyle
2 62316231623162316231623162316231 JOE
2 62316231623162316231623162316231 JOE
3 62316231623162316231623162316231
QA
3 62316231623162316231623162316231
TEST
DROP TABLE t18;
DROP TABLE t18;
...
@@ -2229,18 +2230,19 @@ c1 hex(c4) c5
...
@@ -2229,18 +2230,19 @@ c1 hex(c4) c5
3 62316231623162316231623162316231 QA
3 62316231623162316231623162316231 QA
** update from master **
** update from master **
UPDATE t18 SET c5 = 'TEST' WHERE c6 = 3;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
c1 hex(c4) c5 c6 c7
c1 hex(c4) c5 c6 c7
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
QA
3 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
TEST
3 CURRENT_TIMESTAMP
** Check slave **
** Check slave **
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
c1 hex(c4) c5
c1 hex(c4) c5
1 62316231623162316231623162316231 Kyle
1 62316231623162316231623162316231 Kyle
2 62316231623162316231623162316231 JOE
2 62316231623162316231623162316231 JOE
3 62316231623162316231623162316231
QA
3 62316231623162316231623162316231
TEST
DROP TABLE t18;
DROP TABLE t18;
...
@@ -3369,18 +3371,19 @@ c1 hex(c4) c5
...
@@ -3369,18 +3371,19 @@ c1 hex(c4) c5
3 62316231623162316231623162316231 QA
3 62316231623162316231623162316231 QA
** update from master **
** update from master **
UPDATE t18 SET c5 = 'TEST' WHERE c6 = 3;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
c1 hex(c4) c5 c6 c7
c1 hex(c4) c5 c6 c7
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
QA
3 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
TEST
3 CURRENT_TIMESTAMP
** Check slave **
** Check slave **
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
c1 hex(c4) c5
c1 hex(c4) c5
1 62316231623162316231623162316231 Kyle
1 62316231623162316231623162316231 Kyle
2 62316231623162316231623162316231 JOE
2 62316231623162316231623162316231 JOE
3 62316231623162316231623162316231
QA
3 62316231623162316231623162316231
TEST
DROP TABLE t18;
DROP TABLE t18;
...
...
mysql-test/suite/rpl_ndb/r/rpl_ndb_extraColMaster.result
View file @
57c890d5
...
@@ -1089,18 +1089,19 @@ c1 hex(c4) c5
...
@@ -1089,18 +1089,19 @@ c1 hex(c4) c5
3 62316231623162316231623162316231 QA
3 62316231623162316231623162316231 QA
** update from master **
** update from master **
UPDATE t18 SET c5 = 'TEST' WHERE c6 = 3;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
c1 hex(c4) c5 c6 c7
c1 hex(c4) c5 c6 c7
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
QA
3 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
TEST
3 CURRENT_TIMESTAMP
** Check slave **
** Check slave **
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
c1 hex(c4) c5
c1 hex(c4) c5
1 62316231623162316231623162316231 Kyle
1 62316231623162316231623162316231 Kyle
2 62316231623162316231623162316231 JOE
2 62316231623162316231623162316231 JOE
3 62316231623162316231623162316231
QA
3 62316231623162316231623162316231
TEST
DROP TABLE t18;
DROP TABLE t18;
...
@@ -2229,18 +2230,19 @@ c1 hex(c4) c5
...
@@ -2229,18 +2230,19 @@ c1 hex(c4) c5
3 62316231623162316231623162316231 QA
3 62316231623162316231623162316231 QA
** update from master **
** update from master **
UPDATE t18 SET c5 = 'TEST' WHERE c6 = 3;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5,c6,c7 FROM t18 ORDER BY c1;
c1 hex(c4) c5 c6 c7
c1 hex(c4) c5 c6 c7
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
1 62316231623162316231623162316231 Kyle 1 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
2 62316231623162316231623162316231 JOE 2 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
QA
3 CURRENT_TIMESTAMP
3 62316231623162316231623162316231
TEST
3 CURRENT_TIMESTAMP
** Check slave **
** Check slave **
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
SELECT c1,hex(c4),c5 FROM t18 ORDER BY c1;
c1 hex(c4) c5
c1 hex(c4) c5
1 62316231623162316231623162316231 Kyle
1 62316231623162316231623162316231 Kyle
2 62316231623162316231623162316231 JOE
2 62316231623162316231623162316231 JOE
3 62316231623162316231623162316231
QA
3 62316231623162316231623162316231
TEST
DROP TABLE t18;
DROP TABLE t18;
...
...
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