sunkai-cai commented on issue #20032:
URL: 
https://github.com/apache/shardingsphere/issues/20032#issuecomment-1214397615

   # Question
   
   refer to this case #20145 ,Redefine identifier and literals like this:
   
   * Before
   
   ```
   CREATE DB_DISCOVERY RULE ha_group_0 (RESOURCES(resource0,resource1), 
TYPE(NAME=mgr,PROPERTIES(groupName='92504d5b-6dec')),HEARTBEAT(PROPERTIES('keepAliveCron'='0/5
 * * * * ?')));
   
   discoveryTypeName
       : IDENTIFIER
       ;
   ```
   
   * After
   
   ```
   CREATE DB_DISCOVERY RULE ha_group_0 (RESOURCES(resource0,resource1), 
TYPE(NAME="mgr",PROPERTIES(groupName='92504d5b-6dec')),HEARTBEAT(PROPERTIES('keepAliveCron'='0/5
 * * * * ?')));
   
   discoveryTypeName
       : STRING
       ;
   ```
   
   But, if `discoveryTypeName` is `STRING`, then:
   
   * Before
   
   ```
   DROP DB_DISCOVERY TYPE db_discovery_group_0_mgr;
   ```
   
   * After
   
   ```
   DROP DB_DISCOVERY TYPE `db_discovery_group_0_mgr`;
   ```
   
   So,  how can i redefine ?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to