Changeset: 16b02a9fc06a for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/16b02a9fc06a Modified Files: sql/common/sql_types.c sql/test/escape-sequences/Tests/scalar-functions.test Branch: escape-sequences Log Message:
add atan2 diffs (23 lines): diff --git a/sql/common/sql_types.c b/sql/common/sql_types.c --- a/sql/common/sql_types.c +++ b/sql/common/sql_types.c @@ -1288,6 +1288,7 @@ sqltypeinit( sql_allocator *sa) sql_create_func(sa, "acos", "mmath", "acos", FALSE, FALSE, SCALE_FIX, 0, *t, 1, *t); sql_create_func(sa, "atan", "mmath", "atan", FALSE, FALSE, SCALE_FIX, 0, *t, 1, *t); sql_create_func(sa, "atan", "mmath", "atan2", FALSE, FALSE, SCALE_FIX, 0, *t, 2, *t, *t); + sql_create_func(sa, "atan2", "mmath", "atan2", FALSE, FALSE, SCALE_FIX, 0, *t, 2, *t, *t); sql_create_func(sa, "sinh", "mmath", "sinh", FALSE, FALSE, SCALE_FIX, 0, *t, 1, *t); sql_create_func(sa, "cot", "mmath", "cot", FALSE, FALSE, SCALE_FIX, 0, *t, 1, *t); sql_create_func(sa, "cosh", "mmath", "cosh", FALSE, FALSE, SCALE_FIX, 0, *t, 1, *t); diff --git a/sql/test/escape-sequences/Tests/scalar-functions.test b/sql/test/escape-sequences/Tests/scalar-functions.test --- a/sql/test/escape-sequences/Tests/scalar-functions.test +++ b/sql/test/escape-sequences/Tests/scalar-functions.test @@ -195,3 +195,8 @@ select { fn convert('abc', SQL_WLONGVARC ---- abc + +query R +select { fn atan2(1,2) } +---- +0.464 _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org