Changeset: 610ed55e5ac0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/610ed55e5ac0
Modified Files:
        sql/backends/monet5/sql.c
        sql/test/BugTracker-2024/Tests/All
Branch: Dec2023
Log Message:

add error message on missing or incorrect password hash, fixes #7511. Also 
added small test.


diffs (20 lines):

diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -5174,6 +5174,8 @@ SQLuser_password(Client cntxt, MalBlkPtr
                        return msg;
        }
        *password = monet5_password_hash(m, username);
+       if (!(*password))
+               throw(SQL, "mvc", SQLSTATE(42000) "SELECT: Failed to retrieve 
password hash");
        return MAL_SUCCEED;
 }
 
diff --git a/sql/test/BugTracker-2024/Tests/All 
b/sql/test/BugTracker-2024/Tests/All
--- a/sql/test/BugTracker-2024/Tests/All
+++ b/sql/test/BugTracker-2024/Tests/All
@@ -52,3 +52,4 @@ orderby-max-over-rows-Bug-7488
 rel2bin_select-Bug-7496
 multicolumn_IN_value_list-Bug-7497
 field-arg-error-Bug-7506
+7511-password-hash-missing-error
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to