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

Informix CalcLength: rename 1st arg to unify the definition #574

Merged
merged 1 commit into from
May 3, 2017

Conversation

javornikolov
Copy link
Contributor

@javornikolov javornikolov commented May 1, 2017

Rename CalcLength 1st argument to Name in order to have the same definition across all databases. This fixes common Symbols test relying on CalcLength.

@MMatten
Copy link
Contributor

MMatten commented May 1, 2017

I'll test this shortly.

There is a small typo in the commit message (CalcLenght).

Rename CalcLength 1st argument to Name in order to have the same
definition across all databases. This fixes common Symbols test relying
on CalcLength.
@javornikolov javornikolov force-pushed the topic/unify-calc-length-stored-proc branch from 8bf9074 to 051be48 Compare May 1, 2017 19:43
@javornikolov
Copy link
Contributor Author

There is a small typo in the commit message (CalcLenght).

Fixed and force-pushed.

@MMatten
Copy link
Contributor

MMatten commented May 1, 2017

Tests failing now at:

CoreTests.CommonSuite.Symbols

@javornikolov
Copy link
Contributor Author

@MMatten, what exactly is faiilng?

Have you recreated the Informix stored procs? I renamed one of the arguments of CalcLength stored procedure - so it needs to be updated in the database.

@MMatten
Copy link
Contributor

MMatten commented May 1, 2017

@MMatten, what exactly is
Have you recreated the Informix stored procs? I renamed one of the arguments of CalcLength stored procedure - so it needs to be updated in the database.

I rebuilt the VM from this branch so it will have the updated stored proc. I'll pull out the error message and stack trace tomorrow.

@MMatten
Copy link
Contributor

MMatten commented May 2, 2017

Hmmm. Perhaps I'm losing my mind. The failure was in: -

DbFit.AcceptanceTests.JavaTests.PostgresTests.FlowMode.CoreTests.CommonSuite.Symbols

Error message:

java.sql.SQLException: Cannot find parameter "strlength"
	at dbfit.api.DbStoredProcedure.findAccessorForParamWithName(DbStoredProcedure.java:42)
	at dbfit.api.DbStoredProcedure.getDbParameterAccessor(DbStoredProcedure.java:29)
	at dbfit.fixture.DbObjectExecutionFixture.getAccessors(DbObjectExecutionFixture.java:121)
	at dbfit.fixture.DbObjectExecutionFixture.getAccessors(DbObjectExecutionFixture.java:108)
	at dbfit.fixture.DbObjectExecutionFixture.doRows(DbObjectExecutionFixture.java:71)
	at fit.Fixture.doTable(Fixture.java:156)
	at fitlibrary.traverse.AlienTraverseHandler.doTable(AlienTraverseHandler.java:21)
	at fitlibrary.traverse.workflow.DoTraverseInterpreter.interpretWholeTable(DoTraverseInterpreter.java:104)
	at fitlibrary.traverse.workflow.DoTraverseInterpreter.interpretWholeTable(DoTraverseInterpreter.java:89)
	at fitlibrary.DoFixture.interpretWholeTable(DoFixture.java:73)
	at fitlibrary.suite.InFlowPageRunner.run(InFlowPageRunner.java:27)
	at fitlibrary.DoFixture.interpretTables(DoFixture.java:42)
	at dbfit.DatabaseTest.interpretTables(DatabaseTest.java:26)
	at fit.Fixture.doTables(Fixture.java:81)
	at fit.FitServer.process(FitServer.java:81)
	at fit.FitServer.run(FitServer.java:56)
	at fit.FitServer.main(FitServer.java:41)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at fitnesse.testsystems.fit.CommandRunningFitClient$InProcessCommandRunner.tryCreateTestRunner(CommandRunningFitClient.java:262)
	at fitnesse.testsystems.fit.CommandRunningFitClient$InProcessCommandRunner.access$100(CommandRunningFitClient.java:213)
	at fitnesse.testsystems.fit.CommandRunningFitClient$InProcessCommandRunner$1.run(CommandRunningFitClient.java:252)
	at java.lang.Thread.run(Thread.java:748)

@javornikolov
Copy link
Contributor Author

Hmmm. Perhaps I'm losing my mind. The failure was in: -

DbFit.AcceptanceTests.JavaTests.PostgresTests.FlowMode.CoreTests.CommonSuite.Symbols

@MMatten, this PR is created out of master where we don't have the Postgres fix yet. We're fixing the Informix only here (it appears to be a separate independent issue).

@javornikolov
Copy link
Contributor Author

So for this PR we only need to run the Informix integration test.

@MMatten
Copy link
Contributor

MMatten commented May 3, 2017

They pass 👍

@javornikolov
Copy link
Contributor Author

Nice :-) Thanks for the feedback @MMatten! I'm merging that and I'll rebase the branch behind the other PR to pick this change here.

@javornikolov javornikolov merged commit 3499ac7 into master May 3, 2017
@javornikolov javornikolov deleted the topic/unify-calc-length-stored-proc branch May 3, 2017 20:34
@javornikolov javornikolov added this to the 4.0.0 milestone Jan 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants