Changeset: 369a039ffde6 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/369a039ffde6
Modified Files:
        clients/mapiclient/mclient.c
Branch: Mar2025
Log Message:

Improve test for all-inclusive range vs. NULL values.


diffs (34 lines):

diff --git a/clients/mapiclient/mclient.c b/clients/mapiclient/mclient.c
--- a/clients/mapiclient/mclient.c
+++ b/clients/mapiclient/mclient.c
@@ -2656,14 +2656,22 @@ doFile(Mapi mid, stream *fp, bool useins
                                                                        
mnstr_printf(toConsole,
                                                                                
                 " FOR NULL VALUES");
                                                                } else {
-                                                                       if 
(minimum)
-                                                                               
mnstr_printf(toConsole, " FROM %s", minimum);
-                                                                       else
-                                                                               
mnstr_printf(toConsole, " FROM RANGE MINVALUE");
-                                                                       if 
(maximum)
-                                                                               
mnstr_printf(toConsole, " TO %s", maximum);
-                                                                       else
-                                                                               
mnstr_printf(toConsole, " TO RANGE MAXVALUE");
+                                                                       if 
(minimum ||
+                                                                               
maximum ||
+                                                                               
with_nulls == NULL ||
+                                                                               
(minimum == NULL &&
+                                                                               
 maximum == NULL &&
+                                                                               
 with_nulls != NULL &&
+                                                                               
 strcmp(with_nulls, "false") == 0)) {
+                                                                               
if (minimum)
+                                                                               
        mnstr_printf(toConsole, " FROM %s", minimum);
+                                                                               
else
+                                                                               
        mnstr_printf(toConsole, " FROM RANGE MINVALUE");
+                                                                               
if (maximum)
+                                                                               
        mnstr_printf(toConsole, " TO %s", maximum);
+                                                                               
else
+                                                                               
        mnstr_printf(toConsole, " TO RANGE MAXVALUE");
+                                                                       }
                                                                        if 
(with_nulls && strcmp(with_nulls, "true") == 0)
                                                                                
mnstr_printf(toConsole, " WITH NULL VALUES");
                                                                }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to