Changeset: 91b077a9f772 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=91b077a9f772
Modified Files:
        monetdb5/modules/kernel/mmath.mal
        monetdb5/optimizer/opt_support.c
Branch: Dec2016
Log Message:

rand in all its forms is unsafe, + typo.


diffs (24 lines):

diff --git a/monetdb5/modules/kernel/mmath.mal 
b/monetdb5/modules/kernel/mmath.mal
--- a/monetdb5/modules/kernel/mmath.mal
+++ b/monetdb5/modules/kernel/mmath.mal
@@ -188,7 +188,7 @@ unsafe command rand () :int
 address MATHrandint
 comment "return a random number";
 
-command rand (v:int) :int 
+unsafe command rand (v:int) :int 
 address MATHrandintarg
 comment "return a random number";
 
diff --git a/monetdb5/optimizer/opt_support.c b/monetdb5/optimizer/opt_support.c
--- a/monetdb5/optimizer/opt_support.c
+++ b/monetdb5/optimizer/opt_support.c
@@ -273,7 +273,7 @@ isUnsafeFunction(InstrPtr q)
 }
 
 /*
- * Instructions are unsafe is one of the arguments is also mentioned
+ * Instructions are unsafe if one of the arguments is also mentioned
  * in the result list. Alternatively, the 'unsafe' property is set
  * for the function call itself.
  */
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to