kimmking commented on issue #5173: UUID is configured, but SNOWFLAKE is used
URL: 
https://github.com/apache/incubator-shardingsphere/issues/5173#issuecomment-614673333
 
 
   with AUTO:
   ```
   curl -X POST http://localhost:1000/userCode/save -H 
"Content-Type:application/json" --data "{\"name\":\"KK001\"}"
   curl -X POST http://localhost:1000/userCode/save -H 
"Content-Type:application/json" --data "{\"name\":\"KK002\"}"
   ```
   
   result:
   ```
   [2020-04-16 22:01:01.178] [http-nio-1000-exec-9] [INFO ] ShardingSphere-SQL 
- Rule Type: sharding
   [2020-04-16 22:01:01.178] [http-nio-1000-exec-9] [INFO ] ShardingSphere-SQL 
- Logic SQL: INSERT INTO user_code  ( name )  VALUES  ( ? )
   [2020-04-16 22:01:01.178] [http-nio-1000-exec-9] [INFO ] ShardingSphere-SQL 
- SQLStatement: 
InsertStatement(super=DMLStatement(super=AbstractSQLStatement(type=DML, 
tables=Tables(tables=[Table(name=user_code, alias=Optional.absent())]), 
routeConditions=Conditions(orCondition=OrCondition(andConditions=[AndCondition(conditions=[])])),
 encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), 
sqlTokens=[TableToken(tableName=user_code, quoteCharacter=NONE, 
schemaNameLength=0), SQLToken(startIndex=23)], parametersIndex=1, 
logicSQL=INSERT INTO user_code  ( name )  VALUES  ( ? )), 
deleteStatement=false, updateTableAlias={}, updateColumnValues={}, 
whereStartIndex=0, whereStopIndex=0, whereParameterStartIndex=0, 
whereParameterEndIndex=0), columnNames=[name], 
values=[InsertValue(columnValues=[org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@b8d9801])])
   [2020-04-16 22:01:01.178] [http-nio-1000-exec-9] [INFO ] ShardingSphere-SQL 
- Actual SQL: db1 ::: INSERT INTO user_code1   (name, code) VALUES (?, ?) ::: 
[KK001, 1ec7581317d54399982411a1caa01f9f]
   [2020-04-16 22:01:49.501] [http-nio-1000-exec-5] [INFO ] ShardingSphere-SQL 
- Rule Type: sharding
   [2020-04-16 22:01:49.501] [http-nio-1000-exec-5] [INFO ] ShardingSphere-SQL 
- Logic SQL: INSERT INTO user_code  ( name )  VALUES  ( ? )
   [2020-04-16 22:01:49.501] [http-nio-1000-exec-5] [INFO ] ShardingSphere-SQL 
- SQLStatement: 
InsertStatement(super=DMLStatement(super=AbstractSQLStatement(type=DML, 
tables=Tables(tables=[Table(name=user_code, alias=Optional.absent())]), 
routeConditions=Conditions(orCondition=OrCondition(andConditions=[AndCondition(conditions=[])])),
 encryptConditions=Conditions(orCondition=OrCondition(andConditions=[])), 
sqlTokens=[TableToken(tableName=user_code, quoteCharacter=NONE, 
schemaNameLength=0), SQLToken(startIndex=23)], parametersIndex=1, 
logicSQL=INSERT INTO user_code  ( name )  VALUES  ( ? )), 
deleteStatement=false, updateTableAlias={}, updateColumnValues={}, 
whereStartIndex=0, whereStopIndex=0, whereParameterStartIndex=0, 
whereParameterEndIndex=0), columnNames=[name], 
values=[InsertValue(columnValues=[org.apache.shardingsphere.core.parse.old.parser.expression.SQLPlaceholderExpression@b8d9801])])
   [2020-04-16 22:01:49.501] [http-nio-1000-exec-5] [INFO ] ShardingSphere-SQL 
- Actual SQL: db1 ::: INSERT INTO user_code1   (name, code) VALUES (?, ?) ::: 
[KK002, b6da679a5e984acd8c9c44b4d192b100]
   
   ```
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to