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
e54a4060
Commit
e54a4060
authored
Nov 08, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.7 into 10.8
parents
2b5fdddb
3f3ec40c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
7 deletions
+33
-7
mysql-test/suite/innodb/r/insert_into_empty.result
mysql-test/suite/innodb/r/insert_into_empty.result
+11
-0
mysql-test/suite/innodb/t/insert_into_empty.test
mysql-test/suite/innodb/t/insert_into_empty.test
+12
-0
plugin/type_uuid/item_uuidfunc.h
plugin/type_uuid/item_uuidfunc.h
+6
-6
sql/sql_type_fixedbin.h
sql/sql_type_fixedbin.h
+1
-1
sql/table.cc
sql/table.cc
+3
-0
No files found.
mysql-test/suite/innodb/r/insert_into_empty.result
View file @
e54a4060
...
...
@@ -211,3 +211,14 @@ c c2
DELETE FROM t;
COMMIT;
DROP TABLE t;
#
# MDEV-26956 LeakSanitizer/Valgrind errors in
# trx_mod_table_time_t::start_bulk_insert
# upon adding system versioning
#
CREATE TABLE t1(id INT, s DATE, e DATE, PERIOD FOR p(s,e),
PRIMARY KEY(id, p WITHOUT OVERLAPS)) ENGINE=InnoDB;
ALTER TABLE t1 ADD COLUMN row_start BIGINT UNSIGNED AS ROW START,
ADD COLUMN row_end BIGINT UNSIGNED AS ROW END,
ADD PERIOD FOR SYSTEM_TIME(row_start,row_end), WITH SYSTEM VERSIONING;
DROP TABLE t1;
mysql-test/suite/innodb/t/insert_into_empty.test
View file @
e54a4060
...
...
@@ -221,3 +221,15 @@ SELECT * FROM t;
DELETE
FROM
t
;
COMMIT
;
DROP
TABLE
t
;
--
echo
#
--
echo
# MDEV-26956 LeakSanitizer/Valgrind errors in
--
echo
# trx_mod_table_time_t::start_bulk_insert
--
echo
# upon adding system versioning
--
echo
#
CREATE
TABLE
t1
(
id
INT
,
s
DATE
,
e
DATE
,
PERIOD
FOR
p
(
s
,
e
),
PRIMARY
KEY
(
id
,
p
WITHOUT
OVERLAPS
))
ENGINE
=
InnoDB
;
ALTER
TABLE
t1
ADD
COLUMN
row_start
BIGINT
UNSIGNED
AS
ROW
START
,
ADD
COLUMN
row_end
BIGINT
UNSIGNED
AS
ROW
END
,
ADD
PERIOD
FOR
SYSTEM_TIME
(
row_start
,
row_end
),
WITH
SYSTEM
VERSIONING
;
DROP
TABLE
t1
;
plugin/type_uuid/item_uuidfunc.h
View file @
e54a4060
...
...
@@ -27,25 +27,25 @@ class Item_func_sys_guid: public Item_str_func
{
return
MY_UUID_BARE_STRING_LENGTH
+
with_dashes
*
MY_UUID_SEPARATORS
;
}
public:
Item_func_sys_guid
(
THD
*
thd
)
:
Item_str_func
(
thd
),
with_dashes
(
false
)
{}
bool
fix_length_and_dec
()
bool
fix_length_and_dec
()
override
{
collation
.
set
(
DTCollation_numeric
());
fix_char_length
(
uuid_len
());
return
FALSE
;
}
bool
const_item
()
const
{
return
false
;
}
table_map
used_tables
()
const
{
return
RAND_TABLE_BIT
;
}
bool
const_item
()
const
override
{
return
false
;
}
table_map
used_tables
()
const
override
{
return
RAND_TABLE_BIT
;
}
LEX_CSTRING
func_name_cstring
()
const
override
{
static
LEX_CSTRING
name
=
{
STRING_WITH_LEN
(
"sys_guid"
)
};
return
name
;
}
String
*
val_str
(
String
*
)
override
;
bool
check_vcol_func_processor
(
void
*
arg
)
bool
check_vcol_func_processor
(
void
*
arg
)
override
{
return
mark_unsupported_function
(
func_name
(),
"()"
,
arg
,
VCOL_NON_DETERMINISTIC
);
}
Item
*
get_copy
(
THD
*
thd
)
Item
*
get_copy
(
THD
*
thd
)
override
{
return
get_item_copy
<
Item_func_sys_guid
>
(
thd
,
this
);
}
};
...
...
@@ -60,7 +60,7 @@ class Item_func_uuid: public Item_func_sys_guid
return
name
;
}
bool
val_native
(
THD
*
thd
,
Native
*
to
)
override
;
Item
*
get_copy
(
THD
*
thd
)
Item
*
get_copy
(
THD
*
thd
)
override
{
return
get_item_copy
<
Item_func_uuid
>
(
thd
,
this
);
}
};
...
...
sql/sql_type_fixedbin.h
View file @
e54a4060
...
...
@@ -1428,7 +1428,7 @@ class FixedBinTypeBundle
item
->
type_handler
()
==
type_handler
());
return
true
;
}
void
hash
(
ulong
*
nr
,
ulong
*
nr2
)
void
hash
(
ulong
*
nr
,
ulong
*
nr2
)
override
{
if
(
is_null
())
*
nr
^=
(
*
nr
<<
1
)
|
1
;
...
...
sql/table.cc
View file @
e54a4060
...
...
@@ -9711,6 +9711,9 @@ bool TR_table::update(ulonglong start_id, ulonglong end_id)
int
error
=
table
->
file
->
ha_write_row
(
table
->
record
[
0
]);
if
(
unlikely
(
error
))
table
->
file
->
print_error
(
error
,
MYF
(
0
));
/* extra() is used to apply the bulk insert operation
on mysql/transaction_registry table */
table
->
file
->
extra
(
HA_EXTRA_IGNORE_INSERT
);
return
error
;
}
...
...
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