Skip to content

Commit

Permalink
2.10.9: CREATE DATA utclong (#1455)
Browse files Browse the repository at this point in the history
  • Loading branch information
larshp authored Aug 5, 2024
1 parent 6ef00bb commit fc11696
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 18 deletions.
18 changes: 9 additions & 9 deletions packages/cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abaplint/transpiler-cli",
"version": "2.10.7",
"version": "2.10.9",
"description": "Transpiler - Command Line Interface",
"funding": "https://github.com/sponsors/larshp",
"bin": {
Expand All @@ -26,7 +26,7 @@
"author": "abaplint",
"license": "MIT",
"devDependencies": {
"@abaplint/transpiler": "^2.10.7",
"@abaplint/transpiler": "^2.10.8",
"@types/glob": "^8.1.0",
"glob": "=7.2.0",
"@types/progress": "^2.0.7",
Expand Down
4 changes: 2 additions & 2 deletions packages/runtime/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abaplint/runtime",
"version": "2.10.7",
"version": "2.10.9",
"description": "Transpiler - Runtime",
"main": "build/src/index.js",
"typings": "build/src/index.d.ts",
Expand Down
7 changes: 6 additions & 1 deletion packages/runtime/src/statements/create_data.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {clone} from "../clone";
import {throwError} from "../throw_error";
import {ABAPObject, Character, DataReference, Date, String, FieldSymbol, Float, Integer, Structure, Table, Time, XString, Hex, Packed, Numc, Integer8} from "../types";
import {ABAPObject, Character, DataReference, Date, String, FieldSymbol, Float, Integer, Structure, Table, Time, XString, Hex, Packed, Numc, Integer8, UTCLong} from "../types";
import {ICharacter} from "../types/_character";
import {INumeric} from "../types/_numeric";

Expand Down Expand Up @@ -67,6 +67,8 @@ export function createData(target: DataReference | FieldSymbol, options?: ICreat
target.assign(new String());
} else if (options.name.trimEnd() === "XSTRING") {
target.assign(new XString());
} else if (options.name.trimEnd() === "UTCLONG") {
target.assign(new UTCLong());
} else if (options.name.trimEnd() === "I") {
target.assign(new Integer());
} else if (options.name.trimEnd() === "T") {
Expand Down Expand Up @@ -155,6 +157,9 @@ export function createData(target: DataReference | FieldSymbol, options?: ICreat
case "XSTRING":
target.assign(new XString());
break;
case "UTCLONG":
target.assign(new UTCLong());
break;
default:
// @ts-ignore
if (abap.DDIC[options.typeName.trimEnd()]) {
Expand Down
4 changes: 2 additions & 2 deletions packages/transpiler/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/transpiler/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@abaplint/transpiler",
"version": "2.10.7",
"version": "2.10.9",
"description": "Transpiler",
"main": "build/src/index.js",
"typings": "build/src/index.d.ts",
Expand Down

0 comments on commit fc11696

Please sign in to comment.