87
Views
3
Comments
Solved
Calling postgresql function in advance query
Application Type
Traditional Web
Service Studio Version
11.14.16 (Build 60354)

I can successfully call a sql function in where clause in advance query using select * from {table} where param in (select param from function()) but when I am trying to call a function directly using select * from function(); I am getting invalid object name error.

Does any one how I can directly call function in side advance sql query?

2021-06-21 12-37-59
Wei Zhu
Solution

You need at least create one Entity that use your postgresql database connection.
And then write query as following so that Platform can know which database connection to use.
 
/* %LogicalDatabase%=GetLogicalDatabase({AnyEntityThatUsePostgreq}) */
SELECT param from function()


2024-10-19 11-15-19
Sazid

There are good few entity already created and used for postgresql database connection still not able to call directly function. Please note I can use function in where clause.

2024-10-19 11-15-19
Sazid

Thank you

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.