From b9fa613f154fd9439abc1b1db8a55fb9ea232869 Mon Sep 17 00:00:00 2001 From: deepthi Date: Fri, 22 Jan 2021 12:44:01 -0800 Subject: [PATCH] fix common select script to work for both local and operator examples Signed-off-by: deepthi --- examples/common/select_commerce_data.sql | 4 ++-- examples/operator/README.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/common/select_commerce_data.sql b/examples/common/select_commerce_data.sql index d7494950b2..dd7f624d7c 100644 --- a/examples/common/select_commerce_data.sql +++ b/examples/common/select_commerce_data.sql @@ -1,5 +1,5 @@ -\! echo 'Using commerce/0' -use commerce/0; +\! echo 'Using commerce' +use commerce; \! echo 'Customer' select * from customer; \! echo 'Product' diff --git a/examples/operator/README.md b/examples/operator/README.md index 7bdf3d2b80..83f3013dc2 100644 --- a/examples/operator/README.md +++ b/examples/operator/README.md @@ -14,7 +14,7 @@ vtctlclient ApplyVSchema -vschema="$(cat vschema_commerce_initial.json)" commerc # Insert and verify data mysql < ../common/insert_commerce_data.sql -mysql --table < select_commerce_data.sql +mysql --table < ../common/select_commerce_data.sql # Bring up customer keyspace kubectl apply -f 201_customer_tablets.yaml