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
e5cd059f
Commit
e5cd059f
authored
Apr 07, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: Adjust r4673 as in the merge to branches/6.0 -r4676.
parent
ab341009
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
23 deletions
+25
-23
ibuf/ibuf0ibuf.c
ibuf/ibuf0ibuf.c
+1
-1
mysql-test/innodb.result
mysql-test/innodb.result
+0
-7
mysql-test/innodb.test
mysql-test/innodb.test
+0
-11
mysql-test/innodb_bug44032.result
mysql-test/innodb_bug44032.result
+7
-0
mysql-test/innodb_bug44032.test
mysql-test/innodb_bug44032.test
+13
-0
rem/rem0rec.c
rem/rem0rec.c
+3
-3
row/row0upd.c
row/row0upd.c
+1
-1
No files found.
ibuf/ibuf0ibuf.c
View file @
e5cd059f
...
...
@@ -1338,7 +1338,7 @@ ibuf_rec_get_volume(
types
=
rec_get_nth_field_old
(
ibuf_rec
,
1
,
&
len
);
ut_ad
(
len
==
n_fields
*
DATA_ORDER_NULL_TYPE_BUF_SIZE
);
comp
=
FALSE
;
comp
=
0
;
}
else
{
/* >= 4.1.x format record */
...
...
mysql-test/innodb.result
View file @
e5cd059f
...
...
@@ -3306,10 +3306,3 @@ Variable_name Value
Handler_update 1
Variable_name Value
Handler_delete 1
CREATE TABLE t1(c CHAR(3) CHARACTER SET UTF8) ROW_FORMAT=REDUNDANT
ENGINE=InnoDB;
INSERT INTO t1 VALUES('abc'),(0xEFBCA4EFBCA4EFBCA4);
UPDATE t1 SET c='DDD' WHERE c=0xEFBCA4EFBCA4EFBCA4;
UPDATE t1 SET c=NULL WHERE c='DDD';
UPDATE t1 SET c='DDD' WHERE c IS NULL;
DROP TABLE t1;
mysql-test/innodb.test
View file @
e5cd059f
...
...
@@ -2526,17 +2526,6 @@ CONNECTION default;
--
enable_query_log
# Bug : no update-in-place of UTF-8 columns in ROW_FORMAT=REDUNDANT
# (btr_cur_update_in_place not invoked when updating from/to NULL;
# the update is performed by delete and insert instead)
CREATE
TABLE
t1
(
c
CHAR
(
3
)
CHARACTER
SET
UTF8
)
ROW_FORMAT
=
REDUNDANT
ENGINE
=
InnoDB
;
INSERT
INTO
t1
VALUES
(
'abc'
),(
0xEFBCA4EFBCA4EFBCA4
);
UPDATE
t1
SET
c
=
'DDD'
WHERE
c
=
0xEFBCA4EFBCA4EFBCA4
;
UPDATE
t1
SET
c
=
NULL
WHERE
c
=
'DDD'
;
UPDATE
t1
SET
c
=
'DDD'
WHERE
c
IS
NULL
;
DROP
TABLE
t1
;
#######################################################################
# #
# Please, DO NOT TOUCH this file as well as the innodb.result file. #
...
...
mysql-test/innodb_bug44032.result
0 → 100644
View file @
e5cd059f
CREATE TABLE bug44032(c CHAR(3) CHARACTER SET UTF8) ROW_FORMAT=REDUNDANT
ENGINE=InnoDB;
INSERT INTO bug44032 VALUES('abc'),(0xEFBCA4EFBCA4EFBCA4);
UPDATE bug44032 SET c='DDD' WHERE c=0xEFBCA4EFBCA4EFBCA4;
UPDATE bug44032 SET c=NULL WHERE c='DDD';
UPDATE bug44032 SET c='DDD' WHERE c IS NULL;
DROP TABLE bug44032;
mysql-test/innodb_bug44032.test
0 → 100644
View file @
e5cd059f
# Bug44032 no update-in-place of UTF-8 columns in ROW_FORMAT=REDUNDANT
# (btr_cur_update_in_place not invoked when updating from/to NULL;
# the update is performed by delete and insert instead)
--
source
include
/
have_innodb
.
inc
CREATE
TABLE
bug44032
(
c
CHAR
(
3
)
CHARACTER
SET
UTF8
)
ROW_FORMAT
=
REDUNDANT
ENGINE
=
InnoDB
;
INSERT
INTO
bug44032
VALUES
(
'abc'
),(
0xEFBCA4EFBCA4EFBCA4
);
UPDATE
bug44032
SET
c
=
'DDD'
WHERE
c
=
0xEFBCA4EFBCA4EFBCA4
;
UPDATE
bug44032
SET
c
=
NULL
WHERE
c
=
'DDD'
;
UPDATE
bug44032
SET
c
=
'DDD'
WHERE
c
IS
NULL
;
DROP
TABLE
bug44032
;
rem/rem0rec.c
View file @
e5cd059f
...
...
@@ -949,7 +949,7 @@ rec_convert_dtuple_to_rec_old(
ut_ad
(
dtuple_check_typed
(
dtuple
));
n_fields
=
dtuple_get_n_fields
(
dtuple
);
data_size
=
dtuple_get_data_size
(
dtuple
,
FALSE
);
data_size
=
dtuple_get_data_size
(
dtuple
,
0
);
ut_ad
(
n_fields
>
0
);
...
...
@@ -982,7 +982,7 @@ rec_convert_dtuple_to_rec_old(
if
(
dfield_is_null
(
field
))
{
len
=
dtype_get_sql_null_size
(
dfield_get_type
(
field
),
FALSE
);
dfield_get_type
(
field
),
0
);
data_write_sql_null
(
rec
+
end_offset
,
len
);
end_offset
+=
len
;
...
...
@@ -1010,7 +1010,7 @@ rec_convert_dtuple_to_rec_old(
if
(
dfield_is_null
(
field
))
{
len
=
dtype_get_sql_null_size
(
dfield_get_type
(
field
),
FALSE
);
dfield_get_type
(
field
),
0
);
data_write_sql_null
(
rec
+
end_offset
,
len
);
end_offset
+=
len
;
...
...
row/row0upd.c
View file @
e5cd059f
...
...
@@ -423,7 +423,7 @@ row_upd_changes_field_size_or_external(
new_len
=
dict_col_get_sql_null_size
(
dict_index_get_nth_col
(
index
,
upd_field
->
field_no
),
FALSE
);
0
);
}
old_len
=
rec_offs_nth_size
(
offsets
,
upd_field
->
field_no
);
...
...
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