Schema name is always null when using @DataSet(value = "empty.yml")
See original GitHub issueHello! I’m trying to clean my tables, without truncating them, with empty dataset and i’m receiving exception:
NoSuchTableException: The table ‘METADATA’ does not exist in schema ‘null’
The problem located here:
org.dbunit.database.search.AbstractMetaDataBasedSearchCallback#getNodes(int, java.lang.Object)
line 146 always contains null
String schema = this.connection.getSchema();
the solution is:
this.connection.getConnection().getSchema()
as i noticed, this is because of this constructor
org.dbunit.database.DatabaseConnection#DatabaseConnection( java.sql.Connection )
Is there any workaround of this problem ?
I’m using
rider-spring 1.3.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:21 (10 by maintainers)
Top Results From Across the Web
Entity Framework schema always empty in EdmFunction when ...
My goal was to use Entity Framework stored procedures and functions in an async way, but the built-in support isn't there. The default...
Read more >Quick Guide on Loading Initial Data with Spring Boot - Baeldung
A quick and practical example of using data.sql and schema.sql files in Spring Boot.
Read more >addNotNullConstraint | Liquibase Docs
The addNotNullConstraint Change Type enforces a column to always contain a value and not to accept NULL values so that you cannot insert...
Read more >dbt Guide - GitLab
In dbt, it is possible to generate custom database and schema names. This is used extensively in our project to control where a...
Read more >Understanding JSON Schema
The following table maps from the names of JSON types to their analogous ... null. None. 45. 4 Since JSON strings always support...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
have you guys tried to set
dbunit.yml
with properties,or
I was using postgresql and with lowercase table name in my dataset yaml, which complained Table Not Found. Because it tried to find UPPERCASE table name.
After set the properties, it works now.
That’s great! I’ll release 1.12.0 tomorrow.
Thank you very much for your help on this issue!