Bug #3329
FUNCTION with formal parameter of DATETIME type cannot be used with table field of DATE type
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/23/2017
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version:
History
#1 Updated by Jaroslaw Haziak over 6 years ago
Example:
DEF TEMP-TABLE test-tt NO-UNDO FIELD someDate AS DATE. . FUNCTION test-func RETURNS LOGICAL (INPUT ipParam AS DATETIME): RETURN TRUE. END. test-func(test-tt.someDate).
is translated to non-compilable code:
public class TestProc6 { TestTt1_1.Buf testTt = SharedVariableManager.addTempTable("testTt", TestTt1_1.Buf.class, "testTt", "test-tt", false); public void execute() { externalProcedure(TestProc6.this, new Block((Body) () -> { RecordBuffer.openScope(testTt); testFunc(testTt.getSomedate()); })); } public logical testFunc(final datetime _ipParam) { datetime ipParam = TypeFactory.initInput(_ipParam); return function("test-func", logical.class, new Block((Body) () -> { returnNormal(true); })); } }