What's the name of the `BUILTIN` function that con...
# suiteql
a
What's the name of the
BUILTIN
function that converts
T
and
F
to
true
and
false
?
c
*B*UILTIN_RESULT.TYPE_BOOLEAN()
👍 1
a
Ah thanks
👍 2
d
what am I doing wrong then? 🤔 (unexpected error)
Copy code
SELECT
	BUILTIN_RESULT.TYPE_BOOLEAN(transaction.posting)
FROM
	transaction
c
@David B I'm not sure - your query works in my account. Perhaps there's a role restriction or permission, or a company feature not enabled? Are you able to run the query as follows?
Copy code
SELECT
	transaction.posting
FROM
	transaction
d
aha, I was using Tim's sql query tool, which wraps your query in:
Copy code
SELECT * FROM ( SELECT ROWNUM AS ROWNUMBER, * FROM ( ${query} ) ) WHERE ( ROWNUMBER BETWEEN ${rowbegin} AND ${rowend} )
I'm not sql-smart enough to know why this breaks the builtin function, but running the sql string in a script directly has the correct results Thanks Clay!