Great posts here, I just thought I'd mention a possibly problem I had yesterday which might be related to this Main problem mentioned above..

I wanted to make a Class::DBI object automatically set up by Class::DBI::Pg, but also with mixins of Class::DBI::AsForm and Class::DBI::FromCGI (and CGI qw/:standard/ as per the ::AsForm docs).

I fiddled for a while and when it took too long, just used the Pg part and ditched the other two modules. I had added a method to the object as in the ::AsForm docs, create_or_edit(). But I kept getting an error to the effect that "Person cannot SELECT" and then a bunch of html tags embedded in the SQL! (e.g. tablename
and so on).

Probably I should have persevered and maybe improved my understanding of such things, or.. Is this the problem mentioned about using automatic setup modules above? I thought it would be neat to just use these as my base and have an automatic editting script set up, especially since the other modules I found on cpan to do that seemed buggy.


In reply to Re: Class::DBI connect info from file? by mattr
in thread Class::DBI connect info from file? by bmoyles

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.