Skip Menu |

This queue is for tickets about the SQL-Translator CPAN distribution.

Report information
The Basics
Id: 56758
Status: resolved
Priority: 0/
Queue: SQL-Translator

People
Owner: Nobody in particular
Requestors: blank101 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.11005
Fixed in: (no value)



Subject: SQLite producer error with default varchar
running perl 5.10.0, OS 10.6 using the following create table test (test varchar(8) default TEST) translating to DBIx:Class generates the following ... "test", { data_type => "varchar", default_value => "TEST", is_nullable => 1, size => 8, }, ... translating back to SQLite makes the table create table test (test varchar(8) default 'TEST') once more to DBIx::Class gives ... "test", { data_type => "varchar", default_value => "'TEST'", is_nullable => 1, size => 8, }, ... n.b. the extra single quotes. Further attempts to translate back to SQLite fail.
On Tue Apr 20 15:48:36 2010, http://sweetbeard.com/ wrote: Show quoted text
> running perl 5.10.0, OS 10.6 > > using the following > > create table test (test varchar(8) default TEST) > > translating to DBIx:Class > > generates the following > > ... > "test", > { > data_type => "varchar", > default_value => "TEST", > is_nullable => 1, > size => 8, > }, > ... > > translating back to SQLite makes the table > > create table test (test varchar(8) default 'TEST') > > once more to DBIx::Class gives
What is the exact incantation you use to "translate" from your database to DBIx::Class classes?
On Wed Nov 17 06:19:37 2010, RIBASUSHI wrote: Show quoted text
> > What is the exact incantation you use to "translate" from your database > to DBIx::Class classes?
Stalling until more info becomes available.
Subject: Re: [rt.cpan.org #56758] SQLite producer error with default varchar
Date: Thu, 2 Dec 2010 07:37:18 -0500
To: bug-SQL-Translator [...] rt.cpan.org
From: Carl Pearson <cap10 [...] gwmail.gwu.edu>
from my colleague: " We're using the Catalyst DBIC helper (ultimately SQL::Translator) to generate the schema. Names changed to protect the innocent: MyApp_create.pl -force model EDB DBIC::Schema MyAppSchema create=static result_base_class=MyAppSchema::Result datetime_timezone=GMT use_moose=1 naming=current dbi:SQLite:test.db " On Thu, Dec 2, 2010 at 6:26 AM, Peter Rabbitson via RT <bug-SQL-Translator@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=56758 > > > On Wed Nov 17 06:19:37 2010, RIBASUSHI wrote:
>> >> What is the exact incantation you use to "translate" from your database >> to DBIx::Class classes?
> > Stalling until more info becomes available. > >
On Thu Dec 02 07:37:38 2010, cap10@gwmail.gwu.edu wrote: Show quoted text
> from my colleague: > > " > We're using the Catalyst DBIC helper (ultimately SQL::Translator) to > generate the schema. > > Names changed to protect the innocent: > > MyApp_create.pl -force model EDB DBIC::Schema MyAppSchema > create=static result_base_class=MyAppSchema::Result > datetime_timezone=GMT use_moose=1 naming=current dbi:SQLite:test.db > " >
This should be fixed entirely with the latest version of DBIx::Class::Schema::Loader (doesn't look like an SQL::Translator issue). Please let us know if this is the case when time permits.
I am closing this ticket for the time being. By all means feel free to reopen it if the solution mentioned earlier (upgrading Schema::Loader) does not in fact resolve this problem. Cheers