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
f0af808f
Commit
f0af808f
authored
Nov 28, 2004
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Bug #6794 Wrong outcome of update operation of ndb table
parent
5607539c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
1 deletion
+36
-1
mysql-test/r/ndb_update.result
mysql-test/r/ndb_update.result
+12
-0
mysql-test/t/ndb_update.test
mysql-test/t/ndb_update.test
+22
-0
sql/sql_update.cc
sql/sql_update.cc
+2
-1
No files found.
mysql-test/r/ndb_update.result
0 → 100644
View file @
f0af808f
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
pk1 INT NOT NULL PRIMARY KEY,
b INT NOT NULL,
c INT NOT NULL
) ENGINE=ndbcluster;
INSERT INTO t1 VALUES (0, 0, 0),(1,1,1);
UPDATE t1 set b = c;
select * from t1 order by pk1;
pk1 b c
0 0 0
1 1 1
mysql-test/t/ndb_update.test
0 → 100644
View file @
f0af808f
--
source
include
/
have_ndb
.
inc
--
disable_warnings
DROP
TABLE
IF
EXISTS
t1
;
--
enable_warnings
#
# Basic test of INSERT in NDB
#
#
# Create a normal table with primary key
#
CREATE
TABLE
t1
(
pk1
INT
NOT
NULL
PRIMARY
KEY
,
b
INT
NOT
NULL
,
c
INT
NOT
NULL
)
ENGINE
=
ndbcluster
;
INSERT
INTO
t1
VALUES
(
0
,
0
,
0
),(
1
,
1
,
1
);
UPDATE
t1
set
b
=
c
;
select
*
from
t1
order
by
pk1
;
sql/sql_update.cc
View file @
f0af808f
...
...
@@ -110,7 +110,8 @@ int mysql_update(THD *thd,
#ifndef NO_EMBEDDED_ACCESS_CHECKS
table
->
grant
.
want_privilege
=
want_privilege
;
#endif
if
(
setup_fields
(
thd
,
0
,
update_table_list
,
fields
,
1
,
0
,
0
))
if
(
setup_fields
(
thd
,
0
,
update_table_list
,
fields
,
1
,
0
,
0
)
||
setup_fields
(
thd
,
0
,
update_table_list
,
values
,
1
,
0
,
0
))
DBUG_RETURN
(
-
1
);
/* purecov: inspected */
if
(
table
->
timestamp_field
)
{
...
...
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