Multiple SQL statements separated by semicolon

619 views
Skip to first unread message

Jörg Hohwiller

unread,
Feb 2, 2016, 3:05:05 AM2/2/16
to OrientDB
Hi there,

I found OrientDB and think it has a very great potential and looks very promising to me.
Now I have a quite obvious question:
Why does the SQL engine not support multiple SQL statements separated by semicolon?
This is supported in console but does not work in studio or JDBC driver nor in in java document API.
IMHO this would be trivial to fix and cause a lot of additional value.
See also my comments here:
https://github.com/flyway/flyway/issues/947

Thanks
  Jörg

Luigi Dell'Aquila

unread,
Feb 2, 2016, 4:01:39 AM2/2/16
to orient-...@googlegroups.com
Hi Jörg,

Thank you very much for the pointer, batch scripts are supported in Studio (you have to enable them from the options menu (at the bottom right corner of the box where you write the statements), from REST API and from Document API (use OCommandScript instead of OCommandSQL), but not in JDBC.
I'm adding a comment in the issue, maybe I can help working around this

Thank!

Luigi


--

---
You received this message because you are subscribed to the Google Groups "OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to orient-databa...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jörg Hohwiller

unread,
Feb 2, 2016, 6:16:33 AM2/2/16
to OrientDB
Hi Luigi,

great. That is very cool. Thanks for the hints.
Is there an issue for orient jdbc driver? Or could I create one on github?
I thing this would be a reasonable feature request for JDBC and IMHO not that complicated to implement.

Cheers
  Jörg

Jörg Hohwiller

unread,
Feb 2, 2016, 6:16:36 AM2/2/16
to OrientDB
As I see now my expectation of JDBC is just wrong (I havent been using such low level stuff for a long while):
http://stackoverflow.com/questions/18515471/can-i-execute-multiple-queries-separated-by-semicolon-with-mysql-connector-j


Am Dienstag, 2. Februar 2016 10:01:39 UTC+1 schrieb Luigi Dell'Aquila:
Reply all
Reply to author
Forward
0 new messages