Repository: trafodion
Updated Branches:
  refs/heads/master 7daf172c9 -> 53391708a


[TRAFODION-2998] sleep execution code cannot build on CentOS 7


Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/80b76cd4
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/80b76cd4
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/80b76cd4

Branch: refs/heads/master
Commit: 80b76cd4ce9102d3f52e82392af213819a54023c
Parents: 75c7b39
Author: Liu Ming <ovis_p...@sina.com>
Authored: Mon Mar 19 03:34:09 2018 +0000
Committer: Liu Ming <ovis_p...@sina.com>
Committed: Mon Mar 19 03:34:09 2018 +0000

----------------------------------------------------------------------
 core/sql/exp/exp_function.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/80b76cd4/core/sql/exp/exp_function.cpp
----------------------------------------------------------------------
diff --git a/core/sql/exp/exp_function.cpp b/core/sql/exp/exp_function.cpp
index a65c120..8d9426f 100644
--- a/core/sql/exp/exp_function.cpp
+++ b/core/sql/exp/exp_function.cpp
@@ -2550,7 +2550,7 @@ ex_expr::exp_return_type ex_function_sleep::eval(char 
*op_data[],
       break;
       
     case REC_BIN32_SIGNED:
-      *(Lng32 *)sec = labs(*(Lng32 *)op_data[1]);
+      sec = *(Lng32 *)op_data[1];
       if(sec < 0 )
       {
         ExRaiseSqlError(heap, diagsArea, EXE_BAD_ARG_TO_MATH_FUNC);

Reply via email to