JSqlParser icon indicating copy to clipboard operation
JSqlParser copied to clipboard

TenantLineInnerInterceptor Could not support "Replace" grammer like "replace into table_xx values ..."

Open JuneMare opened this issue 3 years ago • 1 comments
trafficstars

I execute "replace INTO b_house ( id, name1) values ( (#{house.id} ,#{house.name1})" in multiple tenant mode,using "TenantLineInnerInterceptor" to help me,but it cannot work. because there is no related code...

at com.baomidou.mybatisplus.extension.parser.JsqlParserSupport#processParser:

if (logger.isDebugEnabled()) { logger.debug("SQL to parse, SQL: " + sql); } if (statement instanceof Insert) { this.processInsert((Insert) statement, index, sql, obj); } else if (statement instanceof Select) { this.processSelect((Select) statement, index, sql, obj); } else if (statement instanceof Update) { this.processUpdate((Update) statement, index, sql, obj); } else if (statement instanceof Delete) { this.processDelete((Delete) statement, index, sql, obj); } sql = statement.toString(); if (logger.isDebugEnabled()) { logger.debug("parse the finished SQL: " + sql); } return sql;

just Insert,Select,Delete and Update,There is not Replace block..

JuneMare avatar Aug 07 '22 08:08 JuneMare

But this does not seem to be a JSqlParser problem but a mybatisplus extension problem.

wumpz avatar Aug 31 '22 18:08 wumpz

No feedback and no further questions asked. Closed.

manticore-projects avatar Nov 12 '22 06:11 manticore-projects