Written by

consultant at self employed
Question jaroslav rapp · Dec 3, 2021

What happened to embedded SQL ?

When i use &sql(SELECT ......)  in Cache I can watch the generated code
In the generated .int code and see what is happening.
Just with my normal rights

Now in IRIS I have just 4 line calling some class %sqlcq.***
With enough rights i find there is no such class but the generated .int routine
%sqlcq.IRISAPP.xEZgUjdXCCgQdZQPpRdOye1Ci2ue.1
That holds the code that i had in my .int on Cache

Can i switch this back somehow ?

Product version: IRIS 2021.1

Comments

jaroslav rapp  Dec 6, 2021 to Benjamin De Boe

the main reason is the get inspiration for my own Custom Class Queries
 

0
jaroslav rapp  Dec 6, 2021 to Eduard Lebedyuk

do you refer to this ????

$classmethod("%sqlcq."_$tr($namespace,"%_-$@:/\[]^ ","pudsssssssss")_".xETs3uMe2Ehn2LY5inuZiK4xgwnS","%New")

this seems like developers forcing out of embedded SQL

0
Vitaliy Serdtsev  Dec 7, 2021 to jaroslav rapp

Try the following:

  1. enable "Retain cached query source" as described above
  2. compile your class/project with addition flags "k /compileembedded=1" (see Validating Embedded SQL Code)
  3. open the code of the generated program from the Studio or System Portal like %sqlcq.[YOURNAMESPACE].xETs3uMe2Ehn2LY5inuZiK4xgwnS.1.int
  4. Note: at the same time, do not forget to specify checkbox for system items
  5. Profit!
0
jaroslav rapp  Dec 7, 2021 to Vitaliy Serdtsev

Thanks.

This makes retrieval of generated code better.
But attractive would be exaggerating.
 

0