This is an automated email from the ASF dual-hosted git repository.

panjuan 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 6bcc286  Update the sctl in the example (#11858)
6bcc286 is described below

commit 6bcc286a6b8e44ae7a6d686a385a419df8e75104
Author: lanchengx <[email protected]>
AuthorDate: Tue Aug 17 03:47:21 2021 -0500

    Update the sctl in the example (#11858)
---
 .../shardingsphere/example/proxy/hint/ProxyHintExample.java       | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 
a/examples/shardingsphere-proxy-example/shardingsphere-proxy-hint-example/src/main/java/org/apache/shardingsphere/example/proxy/hint/ProxyHintExample.java
 
b/examples/shardingsphere-proxy-example/shardingsphere-proxy-hint-example/src/main/java/org/apache/shardingsphere/example/proxy/hint/ProxyHintExample.java
index 44f047f..3bbbbf2 100644
--- 
a/examples/shardingsphere-proxy-example/shardingsphere-proxy-hint-example/src/main/java/org/apache/shardingsphere/example/proxy/hint/ProxyHintExample.java
+++ 
b/examples/shardingsphere-proxy-example/shardingsphere-proxy-hint-example/src/main/java/org/apache/shardingsphere/example/proxy/hint/ProxyHintExample.java
@@ -77,14 +77,14 @@ public final class ProxyHintExample {
     private static void setHintValue(final Statement statement) throws 
SQLException {
         switch (TYPE) {
             case DATABASE_TABLES:
-                statement.execute("sctl:hint addDatabaseShardingValue 
t_order=1");
-                statement.execute("sctl:hint addTableShardingValue t_order=1");
+                statement.execute("add sharding hint database_value 
t_order=1");
+                statement.execute("add sharding hint table_value t_order=1");
                 return;
             case DATABASE_ONLY:
-                statement.execute("sctl:hint set DatabaseShardingValue=1");
+                statement.execute("set sharding hint database_value=1");
                 return;
             case WRITE_ONLY:
-                statement.execute("sctl:hint set PRIMARY_ONLY=true");
+                statement.execute("set readwrite_splitting hint source=write");
                 return;
             default:
                 throw new UnsupportedOperationException("unsupported type");

Reply via email to