Changeset: 08d123b8da90 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/08d123b8da90
Modified Files:
        sql/backends/monet5/sql_user.c
Branch: userprofile
Log Message:

small compilation fix, ie always lookup the schema rid based on the schema_id


diffs (19 lines):

diff --git a/sql/backends/monet5/sql_user.c b/sql/backends/monet5/sql_user.c
--- a/sql/backends/monet5/sql_user.c
+++ b/sql/backends/monet5/sql_user.c
@@ -364,12 +364,12 @@ monet5_create_user(ptr _mvc, str user, s
                        default:
                                break;
                }
-               if (is_oid_nil(rid = 
store->table_api.column_find_row(m->session->tr, find_sql_column(schemas_tbl, 
"id"), &schema_id, NULL)))
-                       throw(SQL,"sql.create_user",SQLSTATE(42000) "User 
schema not found");
                new_schema = true;
        }
+       assert(schema_id);
 
-       assert(schema_id);
+       if (is_oid_nil(rid = store->table_api.column_find_row(m->session->tr, 
find_sql_column(schemas_tbl, "id"), &schema_id, NULL)))
+               throw(SQL,"sql.create_user",SQLSTATE(42000) "User schema not 
found");
 
        // by default match schema path with the schema name
        // unless specified by the user
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to