H2 Exception in thread "main" org.h2.jdbc.JdbcSQLException: Method is only allowed for a query. Use execute or executeUpdate instead of executeQuery; SQL statement:

1,769 views
Skip to first unread message

Patrik Mihalčin

unread,
Aug 5, 2016, 11:04:57 AM8/5/16
to Gatling User Group
Hi all,
I am getting Exception in thread "main" org.h2.jdbc.JdbcSQLException: Method is only allowed for a query. Use execute or executeUpdate instead of executeQuery; SQL statement:
while trying to use jdbc feeder with h2 database

Is there any workaround for H2 or it is just not supported?

Thanks

Stéphane LANDELLE

unread,
Aug 5, 2016, 2:24:06 PM8/5/16
to gat...@googlegroups.com
I'd say that you're trying to perform an SQL INSERT or UPDATE with the JdbcFeeder.
If so, it's non sense. A Feeder is used to read, hence SELECT only.

Stéphane Landelle
GatlingCorp CEO


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

Reply all
Reply to author
Forward
0 new messages