Skip Menu |

This queue is for tickets about the DBIx-Class-Schema-Loader CPAN distribution.

Report information
The Basics
Id: 77083
Status: resolved
Worked: 5 min
Priority: 0/
Queue: DBIx-Class-Schema-Loader

People
Owner: Nobody in particular
Requestors: ian.stuart [...] ed.ac.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.07023
Fixed in: 0.07017



Subject: dbicdump error reading postgreSQL database
I had a problem with dbicdump, and I think I've tracked it to a version problem. I did some testing with a colleague, who had demonstrated the advantage of Catalyst to me. - He's running Perl 5.12, I'm on 5.14 - We are running the same version of catalyst - He's running DBIx::Class::Schema::Loader 0.07017, I went from 0.07020 to 0.07023 I have rolled back to ::::Loader 0.07017, and I'm no longer getting errors. my dbicdump command is: dbicdump -o dump_directory=/home/ori/lib/perl -o debug=1 EDINA::ORI 'dbi:Pg:dbname=oarj3;host=devel.edina.ac.uk;port=6000' 'ori' 'CramPL1nk23' (this should work for you too - its read-only access to a development version of the database) With 0.07020 I had two other errors: 1) I had Classes being built that were incomplete (some tables, it was dropping 8 columns, others it pulled in all 12 columns) 2) I had at least one column being renamed: 'tbl' became 'table', for example With 0.07023 I was just getting loads of errors and nothing built: lots of "Use of uninitialized value $col in hash element at /usr/local/share/perl/5.14.2/DBIx/Class/Schema/Loader/Base.pm line 2349." "Use of uninitialized value in hash element at /usr/local/share/perl/5.14.2/DBIx/Class/Schema/Loader/RelBuilder.pm line 398." "Use of uninitialized value $column in exists at /usr/share/perl5/DBIx/Class/ResultSource.pm line 380." "Use of uninitialized value $column in concatenation (.) or string at /usr/share/perl5/DBIx/Class/ResultSource.pm line 380." "DBIx::Class::Schema::Loader::make_schema_at(): No such column at /usr/local/bin/dbicdump line 178" Anyway... rolling back to 0.07017 seems to have solved my problem.... so I suspect there's a bug in the later code. (I'll try to keep access to the database open for you..... to work against)
Subject: Re: [rt.cpan.org #77083] dbicdump error reading postgreSQL database
Date: Wed, 09 May 2012 13:20:17 -0400
To: bug-DBIx-Class-Schema-Loader [...] rt.cpan.org
From: Rafael Kitover <rkitover [...] prismnet.com>
On 5/9/2012 10:06 AM, Ian Stuart via RT wrote: Show quoted text
> I had a problem with dbicdump, and I think I've tracked it to a version > problem. > > I did some testing with a colleague, who had demonstrated the > advantage of Catalyst to me. > > - He's running Perl 5.12, I'm on 5.14 > - We are running the same version of catalyst > - He's running DBIx::Class::Schema::Loader 0.07017, I went from 0.07020 > to 0.07023 > I have rolled back to ::::Loader 0.07017, and I'm no longer getting > errors.
Please try 0.07024, there was a bug in 0.07023 for Pg databases. If you have other issues with this version, do not hesitate to open tickets for them.
RT-Send-CC: rkitover [...] prismnet.com
Confirm that upgrading D:C:S:L to 0.07024 has built all classes correctly, and given no errors