gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] branch master updated: fixing _v existence check


From: gnunet
Subject: [libeufin] branch master updated: fixing _v existence check
Date: Sun, 03 Dec 2023 16:26:30 +0100

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new e7774899 fixing _v existence check
e7774899 is described below

commit e7774899c1750ecc59c2f1126d49b1bdbed1cc47
Author: MS <ms@taler.net>
AuthorDate: Sun Dec 3 16:26:04 2023 +0100

    fixing _v existence check
---
 util/src/main/kotlin/DB.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/src/main/kotlin/DB.kt b/util/src/main/kotlin/DB.kt
index ec7268f7..bfa77236 100644
--- a/util/src/main/kotlin/DB.kt
+++ b/util/src/main/kotlin/DB.kt
@@ -196,7 +196,7 @@ fun PreparedStatement.executeProcedureViolation(): Boolean {
 fun maybeApplyV(conn: PgConnection, cfg: DatabaseConfig) {
     conn.transaction {
         val checkVSchema = conn.prepareStatement(
-            "SELECT schema_name FROM information_schema.schemata WHERE 
schema_name = '_v'"
+            "SELECT EXISTS (SELECT FROM pg_tables WHERE schemaname = '_v' AND 
tablename  = 'patches')"
         )
         if (!checkVSchema.executeQueryCheck()) {
             logger.debug("_v schema not found, applying versioning.sql")

-- 
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]