Red Hat Bugzilla – Bug 1308925
Support MariaDB in engine tests
Last modified: 2016-04-18 09:08:11 EDT
Description of problem:
Drools and jBPM engine tests do not support MariaDB:
I would like to ask about the SQL scripts  and :
It seems that SQL scripts are defined for each hibernate dialect (and NOT for each database). Since MySQL and MariaDB share the same Hibernate dialect, is it safe to assume that the same SQL script would be used for both?
Based on that decision, we might need to revisit .
Version-Release number of selected component (if applicable):
BRMS 6.3.0 DR1
Steps to Reproduce:
1. run drools/jbpm tests with MariaDB
Datasource cannot be created.
Datasource is created successfully.
I see that
no longer exist on master (but do on 6.4.x). Would backporting the change from master be possible?
I see that the class PersistenceUtil has been moved to kie-test-util on master.
Created PR adding support for MariaDB to engine tests: https://github.com/droolsjbpm/drools/pull/649
The question about DDL scripts is still open.
Marek, am I assuming correctly that we need the same change in https://github.com/droolsjbpm/jbpm/blob/master/jbpm-persistence-jpa/src/test/java/org/jbpm/persistence/util/PersistenceUtil.java#L181 ? Since jBPM does not (yet) use the PersistenceUtil from kie-test-util, but rather has its own copy.
Petr, yes, we need it there as well, thanks!
Fixed in Drools and jBPM repos. This should hopefully be enough. Marek, if you could double check there isn't anything missing, that would be great.
The changes have helped, but it seems we have missed one more occurrence . Sorry for not getting to this sooner.
Fixed the (hopefully) last occurrence.
Verified in BRMS 6.3.0 ER3.