This is an automated email from the ASF dual-hosted git repository.
xiaoyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 007145b fix examples (#7603)
007145b is described below
commit 007145bc40bd259d0b55a5c94daa38aca3ad523b
Author: kimmking <[email protected]>
AuthorDate: Fri Sep 25 16:44:50 2020 +0800
fix examples (#7603)
---
.../src/main/resources/META-INF/nacos/local/encrypt.yaml | 2 +-
.../src/main/resources/META-INF/zookeeper/local/encrypt.yaml | 2 +-
.../src/main/resources/META-INF/encrypt-databases.yaml | 2 +-
.../src/main/resources/META-INF/encrypt-shadow-databases.yaml | 2 +-
examples/src/resources/manual_schema.sql | 2 ++
5 files changed, 6 insertions(+), 4 deletions(-)
diff --git
a/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml
b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml
index 3440ec3..1e7759b 100644
---
a/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml
+++
b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/nacos/local/encrypt.yaml
@@ -34,7 +34,7 @@ rules:
status_encryptor:
type: AES
props:
- aes-key-value: 123456
+ aes-key-value: 123456abc
props:
query-with-cipher-column: true
diff --git
a/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml
b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml
index 0373e4f..50d8993 100644
---
a/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml
+++
b/examples/shardingsphere-jdbc-example/governance-example/governance-raw-jdbc-example/src/main/resources/META-INF/zookeeper/local/encrypt.yaml
@@ -41,7 +41,7 @@ rules:
status_encryptor:
type: AES
props:
- aes-key-value: 123456
+ aes-key-value: 123456abc
props:
query-with-cipher-column: true
diff --git
a/examples/shardingsphere-jdbc-example/other-feature-example/encrypt-example/encrypt-raw-jdbc-example/src/main/resources/META-INF/encrypt-databases.yaml
b/examples/shardingsphere-jdbc-example/other-feature-example/encrypt-example/encrypt-raw-jdbc-example/src/main/resources/META-INF/encrypt-databases.yaml
index 2c6fcdd..705c2cc 100644
---
a/examples/shardingsphere-jdbc-example/other-feature-example/encrypt-example/encrypt-raw-jdbc-example/src/main/resources/META-INF/encrypt-databases.yaml
+++
b/examples/shardingsphere-jdbc-example/other-feature-example/encrypt-example/encrypt-raw-jdbc-example/src/main/resources/META-INF/encrypt-databases.yaml
@@ -39,7 +39,7 @@ rules:
name_encryptor:
type: AES
props:
- aes-key-value: 123456
+ aes-key-value: 123456abc
pwd_encryptor:
type: assistedTest
diff --git
a/examples/shardingsphere-jdbc-example/other-feature-example/shadow-example/shadow-raw-jdbc-example/src/main/resources/META-INF/encrypt-shadow-databases.yaml
b/examples/shardingsphere-jdbc-example/other-feature-example/shadow-example/shadow-raw-jdbc-example/src/main/resources/META-INF/encrypt-shadow-databases.yaml
index 16d7151..d55fe8f 100644
---
a/examples/shardingsphere-jdbc-example/other-feature-example/shadow-example/shadow-raw-jdbc-example/src/main/resources/META-INF/encrypt-shadow-databases.yaml
+++
b/examples/shardingsphere-jdbc-example/other-feature-example/shadow-example/shadow-raw-jdbc-example/src/main/resources/META-INF/encrypt-shadow-databases.yaml
@@ -51,7 +51,7 @@ rules:
name_encryptor:
type: AES
props:
- aes-key-value: 123456
+ aes-key-value: 123456abc
pwd_encryptor:
type: assistedTest
diff --git a/examples/src/resources/manual_schema.sql
b/examples/src/resources/manual_schema.sql
index ed63257..77a740c 100644
--- a/examples/src/resources/manual_schema.sql
+++ b/examples/src/resources/manual_schema.sql
@@ -45,6 +45,8 @@ CREATE SCHEMA IF NOT EXISTS demo_primary_ds_1;
CREATE SCHEMA IF NOT EXISTS demo_primary_ds_1_replica_0;
CREATE SCHEMA IF NOT EXISTS demo_primary_ds_1_replica_1;
+CREATE SCHEMA IF NOT EXISTS shadow_demo_ds;
+
-- Should sync from master-salve automatically
-- CREATE TABLE IF NOT EXISTS demo_replica_ds_0.t_order (order_id BIGINT NOT
NULL AUTO_INCREMENT, user_id INT NOT NULL, status VARCHAR(50), PRIMARY KEY
(order_id));
-- CREATE TABLE IF NOT EXISTS demo_replica_ds_1.t_order (order_id BIGINT NOT
NULL AUTO_INCREMENT, user_id INT NOT NULL, status VARCHAR(50), PRIMARY KEY
(order_id));