SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near "END": line 1 col 1 (at pos 1)

I am not able to execute simple anonymous blocks in SAP HANA Studio. I am getting below error.

I tried to execute below block:

DO
BEGIN
 select null from dummy;
END;

I am getting below error

Could not execute ‘DO BEGIN select null from dummy’
SAP DBTech JDBC: [257]: sql syntax error: line 3 col 19 (at pos 30)
Could not execute ‘END’
SAP DBTech JDBC: [257]: sql syntax error: incorrect syntax near “END”: line 1 col 1 (at pos 1)

This is version issue. I was using 2.0. I have upgraded to 2.3.5 and it is working fine.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s