Help for this page

Select Code to Download


  1. or download this
    sub url_create : Local {
            # In addition to self & context, get the title, rating, & 
    ...
            # Set the TT template to use
            $c->stash->{template} = 'books/create_done.tt2';
        }
    
  2. or download this
    INSERT INTO books (rating, title) VALUES (?, ?): '5', 'TCPIP_Illustrat
    +ed_Vol-2'
    SELECT COUNT( * ) FROM books me:
    ...
    [debug] Path is "books/url_create"
    [debug] Arguments are "TCPIP_Illustrated_Vol-2/5/4"
    [error] DBI Exception: DBD::Oracle::st execute failed: ORA-01400: cann
    +ot insert NULL into ("SDB2"."BOOKS"."ID") (DBD ERROR: OCIStmtExecute)
    + [for Statement "INSERT INTO books (rating, title) VALUES (?, ?)" wit
    +h ParamValues: :p1='5', :p2='TCPIP_Illustrated_Vol-2'] at /usr/local/
    +lib/perl5/site_perl/5.10.0/DBIx/Class/Schema.pm line 954