diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2016-04-25 00:13:06 +0200 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2016-04-25 00:13:06 +0200 |
commit | 26adbb2dd50db0d62e6f7f5d12bdab0cd3a0bf31 (patch) | |
tree | 122b880f5f65cc094af71625266e70377c80eafc /storage/connect/tabmysql.cpp | |
parent | 8c9fd074d2269ccb0a1b18b9463e847a52b27fce (diff) | |
download | mariadb-git-26adbb2dd50db0d62e6f7f5d12bdab0cd3a0bf31.tar.gz |
- Fix an error causing MYSQL table to fail saying "no result set"
when joining a table to a MYSQL indexed table.
modified: storage/connect/myconn.cpp
modified: storage/connect/myconn.h
modified: storage/connect/tabmysql.cpp
- Add more tests to the mysql_index.test file
modified: storage/connect/mysql-test/connect/r/mysql_index.result
modified: storage/connect/mysql-test/connect/t/mysql_index.test
- Fix and error causing remote indexing to fail when for not unique index.
Was experienced with MYSQL, ODBC and JDBC tables.
modified: storage/connect/connect.cc
- Fix MDEV-9966 (zero lines returned)
modified: storage/connect/ha_connect.cc
modified: storage/federatedx/ha_federatedx.cc
Diffstat (limited to 'storage/connect/tabmysql.cpp')
-rw-r--r-- | storage/connect/tabmysql.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/storage/connect/tabmysql.cpp b/storage/connect/tabmysql.cpp index ed474de036a..b704e1c758b 100644 --- a/storage/connect/tabmysql.cpp +++ b/storage/connect/tabmysql.cpp @@ -19,7 +19,7 @@ /* --------------- */ /* TABMYSQL.CPP - Source code */ /* PLGDBSEM.H - DB application declaration file */ -/* TABMYSQL.H - TABODBC classes declaration file */ +/* TABMYSQL.H - TABMYSQL classes declaration file */ /* GLOBAL.H - Global declaration file */ /* */ /* REQUIRED LIBRARIES: */ @@ -857,7 +857,9 @@ bool TDBMYSQL::OpenDB(PGLOBAL g) /*******************************************************************/ /* Table already open, just replace it at its beginning. */ /*******************************************************************/ - Myc.Rewind(); + if (Myc.Rewind(g, (Mode == MODE_READX) ? Query->GetStr() : NULL) != RC_OK) + return true; + N = -1; return false; } // endif use |