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
c2fa342d
Commit
c2fa342d
authored
Mar 18, 2003
by
monty@narttu.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 3.23 to get fix for halloween problem on Update of InnoDB tables
parents
052edd98
85de2223
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
1 deletion
+22
-1
innobase/row/row0mysql.c
innobase/row/row0mysql.c
+1
-1
mysql-test/t/innodb.test
mysql-test/t/innodb.test
+11
-0
sql/key.cc
sql/key.cc
+8
-0
strings/strto.c
strings/strto.c
+2
-0
No files found.
innobase/row/row0mysql.c
View file @
c2fa342d
...
@@ -6,7 +6,7 @@ Contains also create table and other data dictionary operations.
...
@@ -6,7 +6,7 @@ Contains also create table and other data dictionary operations.
Created 9/17/2000 Heikki Tuuri
Created 9/17/2000 Heikki Tuuri
*******************************************************/
*******************************************************/
#include "row0mysql.h"
#include "row0mysql.h"
#ifdef UNIV_NONINL
#ifdef UNIV_NONINL
...
...
mysql-test/t/innodb.test
View file @
c2fa342d
...
@@ -758,3 +758,14 @@ SELECT * FROM t3 WHERE id1="my-test-1" LOCK IN SHARE MODE;
...
@@ -758,3 +758,14 @@ SELECT * FROM t3 WHERE id1="my-test-1" LOCK IN SHARE MODE;
COMMIT
;
COMMIT
;
set
autocommit
=
1
;
set
autocommit
=
1
;
DROP
TABLE
t1
,
t2
,
t3
;
DROP
TABLE
t1
,
t2
,
t3
;
#
# Check update with conflicting key
#
CREATE
TABLE
t1
(
a
int
not
null
primary
key
,
b
int
not
null
,
unique
(
b
))
type
=
innodb
;
INSERT
INTO
t1
values
(
1
,
1
),(
2
,
2
),(
3
,
3
),(
4
,
4
),(
5
,
5
),(
6
,
6
),(
7
,
7
),(
8
,
8
),(
9
,
9
);
# We need the a < 1000 test here to quard against the halloween problems
UPDATE
t1
set
a
=
a
+
100
where
b
between
2
and
3
and
a
<
1000
;
SELECT
*
from
t1
;
drop
table
t1
;
sql/key.cc
View file @
c2fa342d
...
@@ -269,5 +269,13 @@ bool check_if_key_used(TABLE *table, uint idx, List<Item> &fields)
...
@@ -269,5 +269,13 @@ bool check_if_key_used(TABLE *table, uint idx, List<Item> &fields)
return
1
;
return
1
;
}
}
}
}
/*
If table handler has primary key as part of the index, check that primary
key is not updated
*/
if
(
idx
!=
table
->
primary_key
&&
table
->
primary_key
<
MAX_KEY
&&
(
table
->
file
->
option_flag
()
&
HA_PRIMARY_KEY_IN_READ_INDEX
))
return
check_if_key_used
(
table
,
table
->
primary_key
,
fields
);
return
0
;
return
0
;
}
}
strings/strto.c
View file @
c2fa342d
...
@@ -35,6 +35,8 @@
...
@@ -35,6 +35,8 @@
it can be compiled with the UNSIGNED and/or LONGLONG flag set
it can be compiled with the UNSIGNED and/or LONGLONG flag set
*/
*/
#define strtoll glob_strtoll
/* Fix for True64 */
#include <my_global.h>
#include <my_global.h>
#include "m_string.h"
#include "m_string.h"
#include "m_ctype.h"
#include "m_ctype.h"
...
...
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