Skip to content

Commit 5c958ec

Browse files
larshpCopilot
andauthored
bugfix, sql (#1036)
Co-authored-by: Copilot <[email protected]>
1 parent e013ce8 commit 5c958ec

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
},
1616
"license": "MIT",
1717
"dependencies": {
18-
"@abaplint/cli": "^2.114.4",
18+
"@abaplint/cli": "^2.114.6",
1919
"@abaplint/database-pg": "^2.11.78",
2020
"@abaplint/database-sqlite": "^2.11.78",
21-
"@abaplint/runtime": "^2.12.13",
22-
"@abaplint/transpiler-cli": "^2.12.13",
21+
"@abaplint/runtime": "^2.12.16",
22+
"@abaplint/transpiler-cli": "^2.12.16",
2323
"0x": "^6.0.0"
2424
}
2525
}

src/adbc/cl_sql_result_set.clas.abap

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,12 @@ CLASS cl_sql_result_set IMPLEMENTATION.
4646
WRITE '@KERNEL lv_total.set(this.mv_magic.length);'.
4747
* WRITE '@KERNEL console.dir(this.mv_magic);'.
4848
WRITE '@KERNEL const current = this.mv_magic[this.mv_index.get()];'.
49-
WRITE '@KERNEL lv_value.set(Object.values(current)[0]);'.
5049

50+
WRITE '@KERNEL if (typeof Object.values(current)[0] === "boolean") {'.
51+
WRITE '@KERNEL lv_value.set(Object.values(current)[0] ? "X" : "");'.
52+
WRITE '@KERNEL } else {'.
53+
WRITE '@KERNEL lv_value.set(Object.values(current)[0]);'.
54+
WRITE '@KERNEL }'.
5155

5256
IF mv_ref IS NOT INITIAL.
5357
mv_ref->* = lv_value.

0 commit comments

Comments
 (0)