/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.shardingsphere.core.rewrite.placeholder;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * Index placeholder for rewrite.
 *
 * @author zhangliang
 */
@RequiredArgsConstructor
@Getter
public final class IndexPlaceholder implements ShardingPlaceholder {
    
    private final String logicIndexName;
    
    private final String logicTableName;
    
    @Override
    public String toString() {
        return logicIndexName;
    }
}

@@ -890,38 +890,132 @@
 ort 
-lombok.RequiredArgsConstructor
+org.apache.shardingsphere.core.parse.antlr.constant.QuoteCharacter;%0Aimport org.apache.shardingsphere.core.parse.util.SQLUtil
 ;%0A%0A/
@@ -1082,34 +1082,28 @@
 g%0A *
-/%0A@RequiredArgsConstructor
+ @author panjuan%0A */
 %0A@Ge
@@ -1269,24 +1269,373 @@
 eName;%0A    %0A
+    private final QuoteCharacter quoteCharacter;%0A    %0A    public IndexPlaceholder(final String logicIndexLiteral, final String logicTableName) %7B%0A        logicIndexName = SQLUtil.getExactlyValue(logicIndexLiteral);%0A        this.logicTableName = logicTableName;%0A        quoteCharacter = QuoteCharacter.getQuoteCharacter(logicIndexLiteral);%0A    %7D%0A    %0A
     @Overrid

add quoteCharacter for IndexPlaceholder