All:

When using the development tree's PgSQL producer, I get errors because
the SQLT::Producer class' new _apply_default_value method is being
used, without first loading that class. The error looks like this:

Can't locate object method "_apply_default_value" via package
"SQL::Translator::Producer" at
/usr/share/perl5/SQL/Translator/Producer/PostgreSQL.pm line 513.

I fixed it by simply making the PostgreSQL class a subclass of the
SQLT::Producer class; by adding this line:

use base qw(SQL::Translator::Producer);

If other Producer modules are using this newer functionality, we will
need to patch those as well.

Alternatively, if we're not meant to use SQLT::Producer as a base
class, but rather in a normal 'use' fashion, that will need to be
changed in the repository as well.

Cheers!

Jonathan

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
-- 
sqlfairy-developers mailing list
sqlfairy-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlfairy-developers

Reply via email to