Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.dbunit.dataset.NoSuchTableException: abc #13

Open
Kanti1702 opened this issue Oct 10, 2017 · 1 comment
Open

org.dbunit.dataset.NoSuchTableException: abc #13

Kanti1702 opened this issue Oct 10, 2017 · 1 comment

Comments

@Kanti1702
Copy link

Kanti1702 commented Oct 10, 2017

I have below code in my spec file:
@dbunit(configure={ IDatabaseTester it ->
it.setUpOperation = InsertIdentityOperation.REFRESH
it.tearDownOperation = InsertIdentityOperation.DELETE
})
def content = {
abc(id:123, name:'test')
}

This working finr in MySql, but when I try to run for MSSQL it gives org.dbunit.dataset.NoSuchTableException : abc error.

I have verified the 'abc' table is already there in MSSSQL database.

While debugging I have found that connection.getSchema() return "".

So how I can pass schema 'dbo' to @dbunit extension?

I don't want to pass in every class @dbunit(schema='dbo', configure......) like this.

Instead is it possible to get schema from field like we get datasource.

@janbols
Copy link
Owner

janbols commented Oct 18, 2017

Hi @Kanti1702 , that's not possible yet and I also don't want to keep the plugin as simple enough and not depend on too many ways to get it working. So currently your only option is to ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants