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
Registry update to 1.1 on postgres fails #343
Comments
Can you tell me the output of this query?
|
Result from SELECT MAX(version) FROM sqitch.releases; is
|
Hrm. What happens if you run |
|
If I comment out the line that causes the error and run again the following error occurs:
|
Why does it think the version is 1??? Oh, crap, the data type is REAL. :-( Would you try this patch?
|
@theory thanks that fixed the problem 😄 |
EEEENteresting!. I'll commit that, thanks. |
Oh, I'll bet your Perl is compiled with 32-bit floats. That would explain it. |
I've installed the latest sqitch from CPAN (0.9996) and found this bug when was trying complete the tutorial: https://metacpan.org/pod/sqitchtutorial The first command
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
Yes, I've applied the patch from current issue and this solve the problem but sqitch's current state make the tutorial unusable. |
I'll release a new version in the next week. Don't understand why this just started up; maybe it was this change? @turnstep? |
Hi @theory, This issue got back in 0.9997 for me. Postgres in question is 9.6.0 and perl version is
Any ideas? |
Short update:
CREATE TABLE IF NOT EXISTS :"registry".releases ( Although this works from postgres 9.1... |
No, if it gets to that point, something is wrong and it should fail. Would you tell me what output you see with this patch, please? --- a/lib/App/Sqitch/Engine.pm
+++ b/lib/App/Sqitch/Engine.pm
@@ -1007,6 +1007,7 @@ sub latest_change {
sub needs_upgrade {
my $self = shift;
+ say $self->registry_version, " != ", $self->registry_release;
$self->registry_version != $self->registry_release;
}
|
Now it returns What I did in the mean time was to drop schema, recreated database and things started to work. Just tried to break things, hoping to reproduce it, but without luck :) Let's ignore this then and if I get it back, I'll ping you again. Thanks for prompt response. |
Installed version:
Postgres 9.6 is used.
How to reproduce:
Error shown in command line:
It seem that sqitch does not correctly detect the current version, cause when I look in
sqitch.releases
version 1.1 is correctly set.The text was updated successfully, but these errors were encountered: