strongduanmu opened a new issue, #19392: URL: https://github.com/apache/shardingsphere/issues/19392
## Bug Report ### Which version of ShardingSphere did you use? https://github.com/apache/shardingsphere/commit/efd5e6999a9b5c2ee57ad213d3b33bdb59d3721a ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy? ShardingSphere-Proxy ### Expected behavior ```sql mysql> SHOW CREATE TABLE tb1_cipher; +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Table | Create Table | +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | tb1_cipher | CREATE TABLE `tb1_cipher` ( `id` int NOT NULL, `contact` varchar(30) DEFAULT NULL, `aa` int DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci | +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.09 sec) ``` ### Actual behavior ```sql mysql> SHOW CREATE TABLE tb1_cipher; +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Table | Create Table | +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | tb1_cipher | CREATE TABLE `tb1_cipher` ( `id` int NOT NULL, `contact_cipher` varchar(30) DEFAULT NULL, `contact` varchar(30) DEFAULT NULL, `aa` int DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci | +------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.09 sec) ``` ### Reason analyze (If you can) ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc. ```sql CREATE DATABASE encrypt_db; ADD RESOURCE ds_0 ( URL="jdbc:mysql://localhost:3306/demo_ds_0?serverTimezone=UTC&useSSL=false", USER=root, PASSWORD=123456, PROPERTIES("maximumPoolSize"=50,"idleTimeout"="30000") ); CREATE ENCRYPT RULE tb1_cipher ( COLUMNS( (NAME=`contact`,PLAIN=`contact`,CIPHER=`contact_cipher`,TYPE(NAME=AES,PROPERTIES('aes-key-value'='t5714OQKZAxsmMh'))) ),QUERY_WITH_CIPHER_COLUMN=FALSE); CREATE TABLE `tb1_cipher` ( `id` int(11) NOT NULL, `contact` varchar(30) DEFAULT NULL, `aa` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; SHOW CREATE TABLE tb1_cipher; ``` ### Example codes for reproduce this issue (such as a github link). -- 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]
