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
7fd0cc2d
Commit
7fd0cc2d
authored
Nov 04, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1
into gw.mysql.r18.ru:/usr/home/ram/work/4.1.b6331
parents
d4a3d501
c940b515
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
1 deletion
+46
-1
mysql-test/r/ndb_insert.result
mysql-test/r/ndb_insert.result
+29
-0
mysql-test/t/ndb_insert.test
mysql-test/t/ndb_insert.test
+15
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+2
-1
No files found.
mysql-test/r/ndb_insert.result
View file @
7fd0cc2d
...
@@ -557,3 +557,32 @@ select * from t1 where pk1=1;
...
@@ -557,3 +557,32 @@ select * from t1 where pk1=1;
pk1 b c
pk1 b c
1 2 3
1 2 3
DROP TABLE t1;
DROP TABLE t1;
CREATE TABLE t1(a INT) ENGINE=ndb;
INSERT IGNORE INTO t1 VALUES (1);
INSERT IGNORE INTO t1 VALUES (1);
INSERT IGNORE INTO t1 SELECT a FROM t1;
INSERT IGNORE INTO t1 SELECT a FROM t1;
INSERT IGNORE INTO t1 SELECT a FROM t1;
INSERT IGNORE INTO t1 VALUES (1);
INSERT IGNORE INTO t1 VALUES (1);
SELECT * FROM t1;
a
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
DROP TABLE t1;
mysql-test/t/ndb_insert.test
View file @
7fd0cc2d
...
@@ -583,3 +583,18 @@ INSERT INTO t1 VALUES(1,1,1) ON DUPLICATE KEY UPDATE b=79;
...
@@ -583,3 +583,18 @@ INSERT INTO t1 VALUES(1,1,1) ON DUPLICATE KEY UPDATE b=79;
select
*
from
t1
where
pk1
=
1
;
select
*
from
t1
where
pk1
=
1
;
DROP
TABLE
t1
;
DROP
TABLE
t1
;
#
# Bug #6331: problem with 'insert ignore'
#
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
ndb
;
INSERT
IGNORE
INTO
t1
VALUES
(
1
);
INSERT
IGNORE
INTO
t1
VALUES
(
1
);
INSERT
IGNORE
INTO
t1
SELECT
a
FROM
t1
;
INSERT
IGNORE
INTO
t1
SELECT
a
FROM
t1
;
INSERT
IGNORE
INTO
t1
SELECT
a
FROM
t1
;
INSERT
IGNORE
INTO
t1
VALUES
(
1
);
INSERT
IGNORE
INTO
t1
VALUES
(
1
);
SELECT
*
FROM
t1
;
DROP
TABLE
t1
;
sql/ha_ndbcluster.cc
View file @
7fd0cc2d
...
@@ -2650,7 +2650,8 @@ int ha_ndbcluster::extra(enum ha_extra_function operation)
...
@@ -2650,7 +2650,8 @@ int ha_ndbcluster::extra(enum ha_extra_function operation)
m_use_write
=
TRUE
;
m_use_write
=
TRUE
;
}
else
}
else
{
{
m_ignore_dup_key_not_supported
=
TRUE
;
if
(
table
->
keys
)
m_ignore_dup_key_not_supported
=
TRUE
;
}
}
break
;
break
;
case
HA_EXTRA_NO_IGNORE_DUP_KEY
:
case
HA_EXTRA_NO_IGNORE_DUP_KEY
:
...
...
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