[MXS-220] LAST_INSERT_ID() query is redirect to slave if function call is in where clause Created: 2015-06-24 Updated: 2015-08-20 Resolved: 2015-07-20 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readwritesplit |
| Affects Version/s: | 1.1.1, 1.2.0 |
| Fix Version/s: | 1.3.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Michaël de groot | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Hi, If a query contains LAST_INSERT_ID() it should be redirected to master, even if it is in WHERE clause. Also another syntax is not redirected to the master: SELECT @id:=LAST_INSERT_ID(); - please let me know if you need a test case for this as well. Test case:
201 = master, 203 = slave. Please change it so all queries with LAST_INSERT_ID() function call get redirected to master. |
| Comments |
| Comment by Michaël de groot [ 2015-06-24 ] |
|
Relates to: 1.0.4 GA: 507 R/W split does not send last_insert_id() to the master |
| Comment by markus makela [ 2015-07-20 ] |
|
Switched over to Item_func::func_name() |