[MDEV-4854] ConnectSE: table_type=mysql does not send the WHERE part -> full table scan Created: 2013-08-08 Updated: 2013-08-09 Resolved: 2013-08-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.3 |
| Fix Version/s: | 10.0.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | erkan yanar | Assignee: | Olivier Bertrand |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | connect-engine | ||
| Environment: |
Ubuntu/Precise/LXContainer |
||
| Description |
|
ConnectSE does not send the WHERE part of an statement in opposite to the docs (https://kb.askmonty.org/en/connect-table-types-mysql-table-type-accessing-mysqlmariadb-tables/) to the remote server.
Regarding to the docs select * from federatedconnect where id=1 should be sent as: SELECT id,id2 FROM aha WHERE id=1 to the remote server.
So we see all rows are send. Regads |
| Comments |
| Comment by Olivier Bertrand [ 2013-08-08 ] | ||||||||||||
|
To get the where clause, CONNECT must be called from MariaDB to do so. This depends on the condition | ||||||||||||
| Comment by Olivier Bertrand [ 2013-08-08 ] | ||||||||||||
|
mysqld must be started with: | ||||||||||||
| Comment by erkan yanar [ 2013-08-09 ] | ||||||||||||
|
Great! #v+
----------------------
---------------------- ---
---
--- ----------------------
----------------------
---------------------- Thx |