select on BOOL value returns internal INT representation
See original GitHub issueSELECT TRUE a, FALSE b, 1 c, 0 d FROM DUMMY
returns
[{"A":1,"B":0,"C":1,"D":0}]
Is this intentional? I understand that HANA uses integers for the internal representation of boolean values, but I would expect a node db client to return a javascript type boolean here.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to use BOOLEAN type in SELECT statement
You can definitely get Boolean value from a SELECT query, you just can't use a Boolean data-type. You can represent a Boolean with...
Read more >MySQL Boolean - Javatpoint
MySQL Boolean. A Boolean is the simplest data type that always returns two possible values, either true or false. It can always use...
Read more >BIGINT - IBM
The BIGINT function returns a big integer (a binary integer with a precision of 63 bits) representation of a value of a different...
Read more >Python Booleans: Optimize Your Code With Truth Values
In this tutorial, you'll learn about the built-in Python Boolean data type, which is used to represent the truth value of an expression....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
My vote would be for javascript booleans. But this could break existing applications so a change here should be made with caution.
@alexpenev-s Thanks for your help. Unfortunately, I’ll have to keep handling bools as ints since that feature is not ensured by documentation.