rpg_eval_builtins.zig: a date or timestamp that a procedure returns is converted into the target field #774
Loading…
Reference in a new issue
No description provided.
Delete branch "ldt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
rpg_eval_builtins.zig: a date or timestamp that a procedure returns is converted into the target field
d = q_adddays(d)(SC-CONSTRUCT TRPG3, statement 136) was a partial statement: the date run time (_QRNX_DT_CVT) converts the returned value into the field, anddateResultaccepted only a saved current date (date_literal_caller) or an address (33 T). The compiler loads the address of the returned value from the temporary of the call (27 P), and both descriptors hold the same measured format.dateResultnow takes that form when both descriptors decode to one format of a date or a timestamp, and the temporary holds the text of a call (NAME(...)). The descriptor plumbing lineS62.16 = NAME(...)is dropped.partial(call/operation_semantics,dateResult s03anddateConvertCall s02) torecovered. Statement 136 emitsV00288 = Q_ADDDAYS(V00288);.ts = q_timestamp()) isrecoveredin the dump, but the emit still shows a failure: the timestamp variable is automatic and nothing declares it (rpg_date_fieldstypes static fields only, andQ_TIMESTAMPhas no return type, TRPG3 statement 65). Not changed.s7f-typesands7f-types-dfltstatements 276, 285, 294 (SQL host variables, source atS255.128, formats 25/27/9 with separators not inrpg_date_convert.formats);lr3x-date-char-in-ds(data()requires the whole symbol to be the format width; the declaration of a structure with aninzcharacter subfield and a date subfield stays a failure, seeld.md).lr2-fb-char-fmt-sub(%SUBST(%CHAR(f: *USA): 7: 4), noted open inlr2e.md) emits with no failure at v0.1.489.lr2-fb-sub-len(%SUBST(%CHAR(f): 1)) has no_QRNX_DT_CVTcall (callees empty;rpg_eval.step s07): it is the%SUBSTwithout a length, whichh-bifs-charandh-subfillalso carry.src/rpg_ldt_test.zig.Battery ldt-dt-cvt (request, not captured)
24 cases in
requests/ldt/dt-cvt:%CHARof date formats missing fromformats(*LONGJUL,*CYMD,*CMDY) and of*JIS,*YMD,*DMY;%CHARof time formats; timestamp to characters, date and time;%DATE,%TIME,%TIMESTAMPof characters with a format; the conversion in a comparison and in a concatenation; a date or time subfield at an offset as source and a date subfield as target.Gates
e6942bc9d6bb7463cd3b