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
1b9ff59d
Commit
1b9ff59d
authored
Nov 03, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug#6398 update of primary key fails
parent
65d027bd
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
99 additions
and
86 deletions
+99
-86
mysql-test/r/ndb_basic.result
mysql-test/r/ndb_basic.result
+5
-0
mysql-test/t/ndb_basic.test
mysql-test/t/ndb_basic.test
+2
-0
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+80
-75
sql/ha_ndbcluster.h
sql/ha_ndbcluster.h
+12
-11
No files found.
mysql-test/r/ndb_basic.result
View file @
1b9ff59d
...
@@ -40,6 +40,11 @@ SELECT * FROM t1 ORDER BY pk1;
...
@@ -40,6 +40,11 @@ SELECT * FROM t1 ORDER BY pk1;
pk1 attr1 attr2 attr3
pk1 attr1 attr2 attr3
3 1 NULL 9412
3 1 NULL 9412
9412 9413 17 9413
9412 9413 17 9413
UPDATE t1 SET pk1=4 WHERE pk1 = 3;
SELECT * FROM t1 ORDER BY pk1;
pk1 attr1 attr2 attr3
4 1 NULL 9412
9412 9413 17 9413
DELETE FROM t1;
DELETE FROM t1;
SELECT * FROM t1;
SELECT * FROM t1;
pk1 attr1 attr2 attr3
pk1 attr1 attr2 attr3
...
...
mysql-test/t/ndb_basic.test
View file @
1b9ff59d
...
@@ -36,6 +36,8 @@ UPDATE t1 SET pk1=2 WHERE attr1=1;
...
@@ -36,6 +36,8 @@ UPDATE t1 SET pk1=2 WHERE attr1=1;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
UPDATE
t1
SET
pk1
=
pk1
+
1
;
UPDATE
t1
SET
pk1
=
pk1
+
1
;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
UPDATE
t1
SET
pk1
=
4
WHERE
pk1
=
3
;
SELECT
*
FROM
t1
ORDER
BY
pk1
;
# Delete the record
# Delete the record
DELETE
FROM
t1
;
DELETE
FROM
t1
;
...
...
sql/ha_ndbcluster.cc
View file @
1b9ff59d
This diff is collapsed.
Click to expand it.
sql/ha_ndbcluster.h
View file @
1b9ff59d
...
@@ -243,18 +243,19 @@ class ha_ndbcluster: public handler
...
@@ -243,18 +243,19 @@ class ha_ndbcluster: public handler
NdbValue
m_value
[
NDB_MAX_ATTRIBUTES_IN_TABLE
];
NdbValue
m_value
[
NDB_MAX_ATTRIBUTES_IN_TABLE
];
bool
m_use_write
;
bool
m_use_write
;
bool
m_ignore_dup_key_not_supported
;
bool
m_ignore_dup_key_not_supported
;
bool
retrieve_all_fields
;
bool
m_primary_key_update
;
ha_rows
rows_to_insert
;
bool
m_retrieve_all_fields
;
ha_rows
rows_inserted
;
ha_rows
m_rows_to_insert
;
ha_rows
bulk_insert_rows
;
ha_rows
m_rows_inserted
;
bool
bulk_insert_not_flushed
;
ha_rows
m_bulk_insert_rows
;
ha_rows
ops_pending
;
bool
m_bulk_insert_not_flushed
;
bool
skip_auto_increment
;
ha_rows
m_ops_pending
;
bool
blobs_pending
;
bool
m_skip_auto_increment
;
bool
m_blobs_pending
;
// memory for blobs in one tuple
// memory for blobs in one tuple
char
*
blobs_buffer
;
char
*
m_
blobs_buffer
;
uint32
blobs_buffer_size
;
uint32
m_
blobs_buffer_size
;
uint
dupkey
;
uint
m_
dupkey
;
void
set_rec_per_key
();
void
set_rec_per_key
();
void
records_update
();
void
records_update
();
...
...
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