gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-grid5k] 20/189: fix typos


From: gnunet
Subject: [taler-grid5k] 20/189: fix typos
Date: Thu, 28 Apr 2022 10:46:30 +0200

This is an automated email from the git hooks/post-receive script.

marco-boss pushed a commit to branch master
in repository grid5k.

commit daa6ce80df9a2916a83b82e422e7f6cb38dc93eb
Author: Boss Marco <bossm8@bfh.ch>
AuthorDate: Tue Feb 22 11:29:54 2022 +0100

    fix typos
---
 experiment/scripts/database.sh | 2 +-
 sql/exchange-0002.sql          | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/experiment/scripts/database.sh b/experiment/scripts/database.sh
index 95ffb51..57541b3 100755
--- a/experiment/scripts/database.sh
+++ b/experiment/scripts/database.sh
@@ -193,7 +193,7 @@ EOF
 function setup_partitions() {
   setup_distributed_db
   su taler-exchange-httpd -s /bin/bash << EOF
-psql -d "${DB_NAME}" -tAc "SELECT create_partitions(${NUM_PARTITIONS});"
+psql -d "${DB_NAME}" -tAc "SELECT setup_partitions(${NUM_PARTITIONS});"
 EOF
 }
 
diff --git a/sql/exchange-0002.sql b/sql/exchange-0002.sql
index 4576ba7..cf97e57 100644
--- a/sql/exchange-0002.sql
+++ b/sql/exchange-0002.sql
@@ -55,7 +55,6 @@ $$;
 CREATE OR REPLACE FUNCTION create_partition(
     source_table VARCHAR, 
     modulus INTEGER,
-    suffix VARCHAR,
     num INTEGER
   )
   RETURNS VOID
@@ -66,10 +65,10 @@ BEGIN
   RAISE NOTICE 'Creating partition %_%', source_table, num;
 
   EXECUTE FORMAT(
-    'CREATE TABLE IF NOT EXTISTS %I '
+    'CREATE TABLE IF NOT EXISTS %I '
       'PARTITION OF %I '
       'FOR VALUES WITH (MODULUS %s, REMAINDER %s)',
-    source_table || '_' || suffix,
+    source_table || '_' || num,
     source_table,
     modulus,
     num-1

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]