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

HSQLDB: allow mixed case table names in Insert/Update/Clean #356

Merged
merged 1 commit into from
Apr 22, 2015

Conversation

MMatten
Copy link
Contributor

@MMatten MMatten commented Apr 20, 2015

This introduces the CoreTests for HSQL.

It also allows mixed case table names to be accessed by Insert/Update/Clean as HSQL converts unquoted names to upper case upon creation.

Tests are executed against a memory-only database to make set-up simpler but this might be better to start up a database as part of the VM provisioning so that the DDL for the CoreTests can be moved out of the SetUp.

hsqldb-2.3.2.jar is currently being pulled from custom_libs.

Resolves #292

@MMatten
Copy link
Contributor Author

MMatten commented Apr 20, 2015

Also start to address #292.

@javornikolov
Copy link
Contributor

hsqldb-2.3.2.jar is currently being pulled from custom_libs.

Would it be possible to pick that from some artifact repository? E.g. maybe from here: https://maven-repository.com/artifact/org.hsqldb/hsqldb/2.3.2


import fitnesse.junit.FitNesseSuite;

import org.junit.Ignore;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ignore annotation is not referenced below, no need to import it.

@MMatten
Copy link
Contributor Author

MMatten commented Apr 21, 2015

After removing the HSQL JAR from custom_libs and the gradle cache (at /home/vagrant/.gradle/...) the build then automatically pulls the JAR from https://repo1.maven.org/maven2/org/hsqldb/hsqldb/2.3.2/hsqldb-2.3.2.jar.

@MMatten
Copy link
Contributor Author

MMatten commented Apr 21, 2015

One more option here - include the HSQL tests in the fastbuild task. As the current HSQL tests are using a memory only DB they run quickly.

What do you think?

@benilovj
Copy link
Member

One more option here - include the HSQL tests in the fastbuild task. As the current HSQL tests are using a memory only DB they run quickly.

👍 this is a good idea. The tests are much less likely to break this way.

@javornikolov
Copy link
Contributor

Yeah, I agree. I'm just running hsqldb tests locally - it's so quick, that I'm wondering whether it executed any test at all. I'm trying to verify...

@javornikolov
Copy link
Contributor

Yeah, I agree. I'm just running hsqldb tests locally - it's so quick, that I'm wondering whether it executed any test at all. I'm trying to verify...

Verified - it's all working OK.

@MMatten, could you squash your commits into a single one and force-push the branch (since most are just fix-ups, not so interesting history). And then we can merge the PR, looks good to me.

@MMatten
Copy link
Contributor Author

MMatten commented Apr 21, 2015

Ok, will do.

I think I should now also remove **/hsqldb*.jar from the list of proprietaryLibs.

@javornikolov
Copy link
Contributor

I think I should now also remove */hsqldb.jar from the list of proprietaryLibs.

Yes

@@ -0,0 +1,20 @@
package dbfit.environment;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like that file is with dos-style end of line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd edited from Windows Eclipse but checked in from the VM and hadn't set autocrlf to input.

@MMatten
Copy link
Contributor Author

MMatten commented Apr 22, 2015

One more commit to push in a minute - updating the main doc file.

Enable common test suite for HSQL.
Correctly handle case sensitive object names.
Add HSQLDB tests to fastbuild gradle task
@MMatten
Copy link
Contributor Author

MMatten commented Apr 22, 2015

Right, final doc edits done.

@javornikolov
Copy link
Contributor

Awesome! I'm going to merge this PR.
@MMatten, thanks a lot for your contribution!

javornikolov added a commit that referenced this pull request Apr 22, 2015
@javornikolov javornikolov merged commit 5d3a6d8 into master Apr 22, 2015
@MMatten
Copy link
Contributor Author

MMatten commented Apr 22, 2015

Great.

Does this kill off #292?

@javornikolov
Copy link
Contributor

Does this kill off #292?

Yes, this resolves #292

@javornikolov javornikolov deleted the enable-hsql-tests branch April 22, 2015 21:57
@javornikolov javornikolov changed the title Enable hsql tests HSQLDB: allow mixed case table names in Insert/Update/Clean Aug 15, 2015
@javornikolov javornikolov added this to the 3.2.0 milestone Aug 15, 2015
@javornikolov javornikolov mentioned this pull request Aug 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There aren't any HSQLDB tests
3 participants