Page 1 of 1

MariaDB ROWSET Error when using WITH RECURSIVE clause

PostPosted: Fri Oct 11, 2019 4:53 am
by shri_fwh
Dear Rao Sir ,

I am getting an Error when use below SQL statement in the RowSet. Could you please guide on this.

ERROR : "Method Rowset : Invalid SQL :"

Code: Select all  Expand view

   
WITH RECURSIVE tgl2 as (
    SELECT agrp_id, parent_id
FROM va01
WHERE PARENT_ID = 9
UNION ALL
SELECT g.agrp_id, g.parent_id
FROM va01 g, tgl2 p
WHERE g.PARENT_ID = p.agrp_id
)
SELECT AGRP_ID, tgl2.parent_id FROM tgl2
ORDER BY 2,1 ;

 




Thanks
Shridhar

Re: MariaDB ROWSET Error when using WITH RECURSIVE clause

PostPosted: Fri Oct 11, 2019 5:44 am
by nageswaragunupudi
We understand.
Can you try with

aData := oCn:Execute( cSql )

and see if you are able to get the result into the array?

Re: MariaDB ROWSET Error when using WITH RECURSIVE clause

PostPosted: Sun Oct 13, 2019 4:59 am
by shri_fwh
Dear Rao Sir ,

Thanks a lot for this solution now its working...!

Thanks
Shridhar

Re: MariaDB ROWSET Error when using WITH RECURSIVE clause

PostPosted: Sat Nov 23, 2019 9:43 am
by nageswaragunupudi
FWH 1910: RowSet accepts this type of SQL statement

Re: MariaDB ROWSET Error when using WITH RECURSIVE clause

PostPosted: Mon Nov 25, 2019 4:24 am
by shri_fwh
Dear Rao Sir ,

Thanks a lot ...!

Thanks
Shridhar