Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Schema name is always null when using @DataSet(value = "empty.yml")

See original GitHub issue

Hello! 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:, 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:closed
  • Created 5 years ago
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

metaphorcommented, Nov 14, 2019

have you guys tried to set dbunit.yml with properties,

  caseSensitiveTableNames: true


caseInsensitiveStrategy: !!com.github.database.rider.core.api.configuration.Orthography 'LOWERCASE'
  caseSensitiveTableNames: false

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.

rmpestanocommented, Apr 15, 2020

That’s great! I’ll release 1.12.0 tomorrow.

Thank you very much for your help on this issue!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found