Skip to content

Commit

Permalink
Merge pull request #30 from tom-writes-code/full-timestamps
Browse files Browse the repository at this point in the history
Allow parameterised timestamps
  • Loading branch information
tom-writes-code authored Apr 26, 2022
2 parents 0aa8996 + 1f659cc commit 5aab5ff
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rpgle/REPL_VARS.SQLRPGLE
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,9 @@ dcl-proc fetchVariableDefinitionFromCode export;
return 'IND';
when %scan('DATE;': code) > 0;
return 'DATE';
when %scan('TIMESTAMP;': code) > 0;
return 'TIMESTAMP';
when %scan('TIMESTAMP;': code) > 0
or %scan('TIMESTAMP(': code) > 0;
return 'TIMESTAMP(12)';
when %scan('TIME;': code) > 0;
return 'TIME';
other;
Expand Down Expand Up @@ -551,7 +552,8 @@ dcl-proc fetchVariableTypeFromCode export;
return 'indicator';
when %scan('DATE;': %scanrpl(' ': '': code)) > 0;
return 'date';
when %scan('TIMESTAMP;': %scanrpl(' ': '': code)) > 0;
when %scan('TIMESTAMP;': %scanrpl(' ': '': code)) > 0
or %scan('TIMESTAMP(': %scanrpl(' ': '': code)) > 0;
return 'timestamp';
when %scan('TIME;': %scanrpl(' ': '': code)) > 0;
return 'time';
Expand Down

0 comments on commit 5aab5ff

Please sign in to comment.