Skip to content

Create Support for MariaDB #706

Description

@jeffjensen

Migrated from SourceForgeFeature Requests #252
Originally reported by estebanjgarcia on 2022-12-22 16:13:04.316000
Priority: 5
Assigned to jeffjensen
SF status: pending

I'm getting this annoying warning...

18:10:14 WARN | o.d.d.AbstractTableMetaData | Potential problem found: The configured data type factory 'class org.dbunit.ext.mysql.MySqlDataTypeFactory' might cause problems with the current database 'MariaDB' (e.g. some datatypes may not be supported properly). In rare cases you might see this message because the list of supported database products is incomplete (list=[mysql]). If so please request a java-class update via the forums.If you are using your own IDataTypeFactory extending DefaultDataTypeFactory, ensure that you override getValidDbProducts() to specify the supported database products.

In theory, MariaDB should be compatible with MySQL, so implementation should be straightforward... Also maybe add it to the supported list...

In rare cases you might see this message because the list of supported database products is incomplete (list=[mysql])

I know it is extremely low priority but I checked for Feature requests and it seems no one asked for it yet... so...


jeffjensen — 2022-12-22 16:17:44.187000
Yes, good idea to add it. Thanks for the feature request.

Can you make the needed changes and tests and open a merge request? That would make it happen (and faster).

rumpelstilzchen — 2023-07-27 12:54:26.388000
Hey @jeffjensen, I love this request too.

My first though is to add "mariadb" to the DATABASE_PRODUCTS variable.

private static final Collection DATABASE_PRODUCTS = Arrays.asList(new String[] {"mysql", "mariadb"});

Would this solve fix the warning? Or is deeper knowledge of the MariaDB necessary?

Thanks,
Hans

Metadata

Metadata

Assignees

Labels

area: extDatabase-specific extensions (general)from-sourceforgeMigrated from SourceForge

Fields

No fields configured for Feature.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions