/*
 * 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.parse.antlr.sql.segment.dml.item;

import com.google.common.base.Optional;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.apache.shardingsphere.core.parse.antlr.sql.OwnerAvailable;
import org.apache.shardingsphere.core.parse.util.SQLUtil;

/**
 * Shorthand select item segment.
 *
 * @author zhangliang
 */
@RequiredArgsConstructor
@Getter
public final class ShorthandSelectItemSegment implements SelectItemSegment, OwnerAvailable {
    
    private final int startIndex;
    
    private String owner;
    
    @Override
    public Optional<String> getOwner() {
        return Optional.fromNullable(owner);
    }
    
    @Override
    public void setOwner(final String owner) {
        this.owner = SQLUtil.getExactlyValue(owner);
    }
}

@@ -910,16 +910,43 @@
 tional;%0A
+import lombok.AccessLevel;%0A
 import l
@@ -998,16 +998,113 @@
 ructor;%0A
+import lombok.Setter;%0Aimport org.apache.shardingsphere.core.parse.antlr.constant.QuoteCharacter;%0A
 import o
@@ -1473,28 +1473,177 @@
 private 
-String owner
+int stopIndexOfOwner;%0A    %0A    private String owner;%0A    %0A    @Setter(AccessLevel.PROTECTED)%0A    private QuoteCharacter ownerQuoteCharacter = QuoteCharacter.NONE
 ;%0A    %0A 
@@ -1825,44 +1825,175 @@
     
-this.owner = SQLUtil.getExactlyValue
+stopIndexOfOwner = startIndex + owner.length() - 1;%0A        this.owner = SQLUtil.getExactlyValue(owner);%0A        ownerQuoteCharacter = QuoteCharacter.getQuoteCharacter
 (own

add stopIndexOfOwner and ownerQuoteCharacter