MariaDB ROWSET Error when using WITH RECURSIVE clause

MariaDB ROWSET Error when using WITH RECURSIVE clause

Postby shri_fwh » Fri Oct 11, 2019 4:53 am

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  RUN

   
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
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: MariaDB ROWSET Error when using WITH RECURSIVE clause

Postby nageswaragunupudi » Fri Oct 11, 2019 5:44 am

We understand.
Can you try with

aData := oCn:Execute( cSql )

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10653
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: MariaDB ROWSET Error when using WITH RECURSIVE clause

Postby shri_fwh » Sun Oct 13, 2019 4:59 am

Dear Rao Sir ,

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

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: MariaDB ROWSET Error when using WITH RECURSIVE clause

Postby nageswaragunupudi » Sat Nov 23, 2019 9:43 am

FWH 1910: RowSet accepts this type of SQL statement
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10653
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: MariaDB ROWSET Error when using WITH RECURSIVE clause

Postby shri_fwh » Mon Nov 25, 2019 4:24 am

Dear Rao Sir ,

Thanks a lot ...!

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 81 guests