From ddcadd03ed6cbe6e1908d68b1f223c5338bb6ae8 Mon Sep 17 00:00:00 2001 From: genoa Date: Mon, 4 Jan 1993 15:25:54 +0000 Subject: [PATCH] Fixes a problem with update_filesys, and a problem with set_server_host_internal. --- server/qsupport.dc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/qsupport.dc b/server/qsupport.dc index afd39563..95971f6c 100644 --- a/server/qsupport.dc +++ b/server/qsupport.dc @@ -833,6 +833,7 @@ setup_ufil(q, argv, cl) int fid, total, who; char *entity, ftype[32], *access; int var_phys_id = 0; + short int total_null; EXEC SQL END DECLARE SECTION; type = argv[2]; @@ -864,10 +865,10 @@ setup_ufil(q, argv, cl) total = 0; EXEC SQL REPEATED DELETE FROM quota WHERE type = 'ANY' AND filsys_id = :fid; - EXEC SQL SELECT SUM (quota) INTO :total FROM quota + EXEC SQL SELECT SUM (quota) INTO :total:total_null FROM quota WHERE filsys_id = :fid AND phys_id != 0; if (ingres_errno) return(mr_errcode); - if (total != 0) { + if (!total_null && (total != 0)) { /* * append quota (quota = total, filsys_id = fid, * phys_id = 0, entity_id = 0, type = "ANY", @@ -1049,6 +1050,7 @@ setup_sshi(q, argv, cl) EXEC SQL set lockmode session where readlock = system; #endsql #endif + return(MR_SUCCESS); } -- 2.45.2