[MXS-1264] Migration plugin filter Created: 2017-05-11  Updated: 2022-06-05  Resolved: 2019-09-04

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: Icebox

Type: New Feature Priority: Minor
Reporter: Anders Karlsson Assignee: Todd Stoffel (Inactive)
Resolution: Won't Do Votes: 0
Labels: None


 Description   

The idea is for a filter plugin that can be used to simplify migrations, In some ways, the suggested filter could probably also be implemented as a number of regex filters, but that would possibly require a large number of different filters and some rather complex pattern matching. The idea here is to replace, typically in an SQL statement, some Oracle specific SQL with MariaDB friendly SQL. This is sometimes useful even in production, but probably even more so when testing, migrating or running a POC.
Examples features would be (for an Oracle migration filter):

  • Map DECODE to CASE statements
  • Map SYSDATE to NOW()
  • Oracle outer join (using ) to ANSI-style OUTER JOIN
  • Quoted identifiers to backticks
  • Map || to CONCAT for concatenation


 Comments   
Comment by Johan Wikman [ 2019-09-04 ]

set sql_mode=oracle

should solve this. If not, please open a new ticket.

Generated at Thu Feb 08 04:05:26 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.