24 changed files with 543 additions and 228 deletions
-
3CMakeLists.txt
-
136EXCEPTIONS-CLIENT
-
53mysql-test/main/multi_update.result
-
53mysql-test/main/multi_update.test
-
11mysql-test/suite/innodb/r/foreign_key.result
-
24mysql-test/suite/innodb/r/mvcc_secondary.result
-
39mysql-test/suite/innodb/t/foreign_key.test
-
26mysql-test/suite/innodb/t/mvcc_secondary.test
-
38mysql-test/suite/vcol/r/vcol_syntax.result
-
44mysql-test/suite/vcol/t/vcol_syntax.test
-
1sql/gen_win_tzname_data.ps1
-
36sql/item.h
-
3sql/sql_base.cc
-
4sql/sql_class.h
-
19sql/sql_delete.cc
-
5sql/sql_derived.cc
-
21sql/sql_lex.cc
-
30sql/sql_lex.h
-
55sql/sql_table.cc
-
38sql/sql_update.cc
-
1sql/win_tzname_data.h
-
24storage/innobase/handler/ha_innodb.cc
-
13storage/innobase/log/log0recv.cc
-
94storage/innobase/row/row0sel.cc
@ -1,136 +0,0 @@ |
|||
FOSS License Exception |
|||
|
|||
http://www.mysql.com/about/legal/licensing/foss-exception/ |
|||
Updated February 23, 2012 |
|||
|
|||
What is the FOSS License Exception? |
|||
|
|||
Oracle's Free and Open Source Software ("FOSS") License Exception |
|||
(formerly known as the FLOSS License Exception) allows developers of FOSS |
|||
applications to include Oracle's MySQL Client Libraries (also referred to |
|||
as "MySQL Drivers" or "MySQL Connectors") with their FOSS applications. |
|||
MySQL Client Libraries are typically licensed pursuant to version 2 of the |
|||
General Public License ("GPL"), but this exception permits distribution of |
|||
certain MySQL Client Libraries with a developer's FOSS applications |
|||
licensed under the terms of another FOSS license listed below, even though |
|||
such other FOSS license may be incompatible with the GPL. |
|||
|
|||
The following terms and conditions describe the circumstances under which |
|||
Oracle's FOSS License Exception applies. |
|||
|
|||
Oracle's FOSS License Exception Terms and Conditions |
|||
|
|||
1. Definitions. "Derivative Work" means a derivative work, as defined |
|||
under applicable copyright law, formed entirely from the Program and |
|||
one or more FOSS Applications. |
|||
|
|||
"FOSS Application" means a free and open source software application |
|||
distributed subject to a license listed in the section below titled |
|||
"FOSS License List." |
|||
|
|||
"FOSS Notice" means a notice placed by Oracle or MySQL in a copy of |
|||
the MySQL Client Libraries stating that such copy of the MySQL Client |
|||
Libraries may be distributed under Oracle's or MySQL's FOSS (or FLOSS) |
|||
License Exception. |
|||
|
|||
"Independent Work" means portions of the Derivative Work that are not |
|||
derived from the Program and can reasonably be considered independent |
|||
and separate works. |
|||
|
|||
"Program" means a copy of Oracle's MySQL Client Libraries that |
|||
contains a FOSS Notice. |
|||
|
|||
2. A FOSS application developer ("you" or "your") may distribute a |
|||
Derivative Work provided that you and the Derivative Work meet all of |
|||
the following conditions: |
|||
|
|||
a. You obey the GPL in all respects for the Program and all portions |
|||
(including modifications) of the Program included in the |
|||
Derivative Work (provided that this condition does not apply to |
|||
Independent Works); |
|||
b. The Derivative Work does not include any work licensed under the |
|||
GPL other than the Program; |
|||
c. You distribute Independent Works subject to a license listed in |
|||
the section below titled "FOSS License List"; |
|||
d. You distribute Independent Works in object code or executable |
|||
form with the complete corresponding machine-readable source code |
|||
on the same medium and under the same FOSS license applying to |
|||
the object code or executable forms; |
|||
e. All works that are aggregated with the Program or the Derivative |
|||
Work on a medium or volume of storage are not derivative works of |
|||
the Program, Derivative Work or FOSS Application, and must |
|||
reasonably be considered independent and separate works. |
|||
|
|||
3. Oracle reserves all rights not expressly granted in these terms and |
|||
conditions. If all of the above conditions are not met, then this FOSS |
|||
License Exception does not apply to you or your Derivative Work. |
|||
|
|||
FOSS License List |
|||
|
|||
+------------------------------------------------------------------------+ |
|||
|License Name |Version(s)/Copyright Date| |
|||
|----------------------------------------------+-------------------------| |
|||
|Academic Free License |2.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|Apache Software License |1.0/1.1/2.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|Apple Public Source License |2.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|Artistic license |From Perl 5.8.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|BSD license |"July 22 1999" | |
|||
|----------------------------------------------+-------------------------| |
|||
|Common Development and Distribution License |1.0 | |
|||
|(CDDL) | | |
|||
|----------------------------------------------+-------------------------| |
|||
|Common Public License |1.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|Eclipse Public License |1.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|European Union Public License (EUPL)¹ |1.1 | |
|||
|----------------------------------------------+-------------------------| |
|||
|GNU Affero General Public License (AGPL) |3.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|GNU Library or "Lesser" General Public License|2.0/2.1/3.0 | |
|||
|(LGPL) | | |
|||
|----------------------------------------------+-------------------------| |
|||
|GNU General Public License (GPL) |3.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|IBM Public License |1.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|Jabber Open Source License |1.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|MIT License (As listed in file |- | |
|||
|MIT-License.txt) | | |
|||
|----------------------------------------------+-------------------------| |
|||
|Mozilla Public License (MPL) |1.0/1.1 | |
|||
|----------------------------------------------+-------------------------| |
|||
|Open Software License |2.0 | |
|||
|----------------------------------------------+-------------------------| |
|||
|OpenSSL license (with original SSLeay license)|"2003" ("1998") | |
|||
|----------------------------------------------+-------------------------| |
|||
|PHP License |3.0/3.01 | |
|||
|----------------------------------------------+-------------------------| |
|||
|Python license (CNRI Python License) |- | |
|||
|----------------------------------------------+-------------------------| |
|||
|Python Software Foundation License |2.1.1 | |
|||
|----------------------------------------------+-------------------------| |
|||
|Sleepycat License |"1999" | |
|||
|----------------------------------------------+-------------------------| |
|||
|University of Illinois/NCSA Open Source |- | |
|||
|License | | |
|||
|----------------------------------------------+-------------------------| |
|||
|W3C License |"2001" | |
|||
|----------------------------------------------+-------------------------| |
|||
|X11 License |"2001" | |
|||
|----------------------------------------------+-------------------------| |
|||
|Zlib/libpng License |- | |
|||
|----------------------------------------------+-------------------------| |
|||
|Zope Public License |2.0 | |
|||
+------------------------------------------------------------------------+ |
|||
|
|||
¹) When an Independent Work is licensed under a "Compatible License" |
|||
pursuant to the EUPL, the Compatible License rather than the EUPL is the |
|||
applicable license for purposes of these FOSS License Exception Terms and |
|||
Conditions. |
|||
|
|||
@ -0,0 +1,24 @@ |
|||
# |
|||
# MDEV-25459 MVCC read from index on CHAR or VARCHAR wrongly omits rows |
|||
# |
|||
CREATE TABLE t1 ( |
|||
pk int PRIMARY KEY, c varchar(255) UNIQUE, |
|||
d char(255), e varchar(255), f char(255), g char(255) |
|||
) ENGINE=InnoDB ROW_FORMAT=DYNAMIC DEFAULT CHARACTER SET ucs2; |
|||
INSERT INTO t1 VALUES |
|||
(1,REPEAT('c',248),REPEAT('a',106),REPEAT('b',220),REPEAT('x',14),''); |
|||
BEGIN; |
|||
UPDATE t1 SET c=REPEAT('d',170); |
|||
connect con1,localhost,root,,; |
|||
SELECT pk FROM t1 FORCE INDEX (c); |
|||
pk |
|||
1 |
|||
connection default; |
|||
COMMIT; |
|||
connection con1; |
|||
SELECT pk FROM t1 FORCE INDEX (c); |
|||
pk |
|||
1 |
|||
disconnect con1; |
|||
connection default; |
|||
DROP TABLE t1; |
|||
@ -0,0 +1,26 @@ |
|||
--source include/innodb_page_size_small.inc |
|||
|
|||
--echo # |
|||
--echo # MDEV-25459 MVCC read from index on CHAR or VARCHAR wrongly omits rows |
|||
--echo # |
|||
|
|||
CREATE TABLE t1 ( |
|||
pk int PRIMARY KEY, c varchar(255) UNIQUE, |
|||
d char(255), e varchar(255), f char(255), g char(255) |
|||
) ENGINE=InnoDB ROW_FORMAT=DYNAMIC DEFAULT CHARACTER SET ucs2; |
|||
|
|||
INSERT INTO t1 VALUES |
|||
(1,REPEAT('c',248),REPEAT('a',106),REPEAT('b',220),REPEAT('x',14),''); |
|||
|
|||
BEGIN; |
|||
UPDATE t1 SET c=REPEAT('d',170); |
|||
|
|||
connect (con1,localhost,root,,); |
|||
SELECT pk FROM t1 FORCE INDEX (c); |
|||
connection default; |
|||
COMMIT; |
|||
connection con1; |
|||
SELECT pk FROM t1 FORCE INDEX (c); |
|||
disconnect con1; |
|||
connection default; |
|||
DROP TABLE t1; |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue