Skip to content

Commit ab44e1f

Browse files
committed
Merge 10.5 into 10.6
2 parents 2ac1edb + 3278c57 commit ab44e1f

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

mysql-test/suite/innodb_gis/disabled.def

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@
1313
rtree_concurrent_srch : MDEV-15284 COUNT(*) mismatch
1414
rtree_recovery : MDEV-15284 COUNT(*) mismatch
1515
rtree_compress2 : MDEV-16269 CHECK TABLE reports wrong count
16-
types : MDEV-22512 recovery runs out of memory before 10.5

mysql-test/suite/innodb_zip/disabled.def

Lines changed: 0 additions & 1 deletion
This file was deleted.

storage/connect/mysql-test/connect/r/odbc_postgresql.result

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,3 +319,12 @@ SELECT * from pg_in_maria;
319319
my space column
320320
My value
321321
DROP TABLE pg_in_maria;
322+
#
323+
# MDEV-29397 UPDATE with WHERE on part of two-part primary key causes
324+
# info to turn into error.
325+
#
326+
CREATE TABLE t1 (a VARCHAR(6), b VARCHAR(6), PRIMARY KEY(a, b)) ENGINE=CONNECT TABNAME='schema1.t3' CHARSET=utf8 DATA_CHARSET=utf8 TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEnginePostgresql;UID=mtr;PWD=mtr';
327+
UPDATE t1 SET a='10' WHERE a='20';
328+
Warnings:
329+
Note 1105 schema1.t3: 0 affected rows
330+
DROP TABLE t1;

storage/connect/mysql-test/connect/t/odbc_postgresql.test

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,3 +223,12 @@ DROP TABLE t1;
223223
CREATE TABLE pg_in_maria ENGINE=CONNECT TABNAME='schema1.space_in_column_name' CHARSET=utf8 DATA_CHARSET=utf8 TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEnginePostgresql;UID=mtr;PWD=mtr' quoted=1;
224224
SELECT * from pg_in_maria;
225225
DROP TABLE pg_in_maria;
226+
227+
--echo #
228+
--echo # MDEV-29397 UPDATE with WHERE on part of two-part primary key causes
229+
--echo # info to turn into error.
230+
--echo #
231+
CREATE TABLE t1 (a VARCHAR(6), b VARCHAR(6), PRIMARY KEY(a, b)) ENGINE=CONNECT TABNAME='schema1.t3' CHARSET=utf8 DATA_CHARSET=utf8 TABLE_TYPE=ODBC CONNECTION='DSN=ConnectEnginePostgresql;UID=mtr;PWD=mtr';
232+
UPDATE t1 SET a='10' WHERE a='20';
233+
DROP TABLE t1;
234+

storage/connect/odbconn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2583,7 +2583,7 @@ int ODBConn::Rewind(char *sql, ODBCCOL *tocols)
25832583
int rc, rbuf = -1;
25842584

25852585
if (!m_hstmt)
2586-
rbuf = -1;
2586+
rbuf = 0;
25872587
else if (m_Full)
25882588
rbuf = m_Rows; // No need to "rewind"
25892589
else if (m_Scrollable) {

storage/connect/tabext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,15 +472,15 @@ bool TDBEXT::MakeSQL(PGLOBAL g, bool cnt)
472472
my_len= res - buf + 1;
473473
my_schema_table= (char *) malloc(my_len);
474474
memcpy(my_schema_table, buf, my_len - 1);
475-
my_schema_table[my_len] = 0;
475+
my_schema_table[my_len - 1] = 0;
476476
Query->Append(Quote);
477477
Query->Append(my_schema_table);
478478
Query->Append(Quote);
479479
free(my_schema_table);
480480
Query->Append(".");
481481
// Parse table
482482
my_len= strlen(buf) - my_len + 1;
483-
my_schema_table= (char *) malloc(my_len);
483+
my_schema_table= (char *) malloc(my_len + 1);
484484
memcpy(my_schema_table, ++res, my_len);
485485
my_schema_table[my_len] = 0;
486486
Query->Append(Quote);

0 commit comments

Comments
 (0)