Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

creating tables causes script to hang

Quote Reply
creating tables causes script to hang
The table is created, but the def file isn't, and the script just hangs.

Code:
my $db_ping = $DB->creator('Blog_Ping');

$db_ping->cols(
ID => {
pos => 1,
type => "INT",
size => 10,
not_null => 1
},
url => {
pos => 2,
type => "CHAR",
not_null => 1
},
excerpt => {
pos => 3,
type => "CHAR"
},
blog_name => {
pos => 4,
type => "CHAR"
},
title => {
pos => 5,
type => "CHAR"
}
);

$db_ping->unique({ "id_url" => ['ID', 'url']});
$db_ping->create();

I've pinpointed the problem down to:

Code:
$db_ping->unique({ "id_url" => ['ID', 'url']});

If I comment that out, them the def file is created. I just don't see what's wrong with it, as the usage appears to be within spec with GT::SQL::Creator documentation.

any ideas?

Philip
------------------
Limecat is not pleased.
Subject Author Views Date
Thread creating tables causes script to hang fuzzy logic 5709 Mar 10, 2005, 12:11 AM
Thread Re: [fuzzy logic] creating tables causes script to hang
Andy 5660 Mar 10, 2005, 12:34 AM
Thread Re: [Andy] creating tables causes script to hang
fuzzy logic 5617 Mar 10, 2005, 8:47 AM
Thread Re: [fuzzy logic] creating tables causes script to hang
Andy 5628 Mar 10, 2005, 8:51 AM
Thread Re: [Andy] creating tables causes script to hang
fuzzy logic 5651 Mar 10, 2005, 10:31 AM
Post Re: [fuzzy logic] creating tables causes script to hang
Andy 5631 Mar 10, 2005, 10:36 AM
Post Re: [fuzzy logic] creating tables causes script to hang
Andy 5610 Mar 10, 2005, 10:39 AM
Post Re: [fuzzy logic] creating tables causes script to hang
brewt 5615 Mar 10, 2005, 10:40 AM
Thread Re: [fuzzy logic] creating tables causes script to hang
webmaster33 5590 Mar 12, 2005, 9:51 AM
Thread Re: [webmaster33] creating tables causes script to hang
PAYE 5654 Mar 12, 2005, 10:23 AM
Thread Re: [PAYE] creating tables causes script to hang
webmaster33 5575 Mar 12, 2005, 10:50 AM
Thread Re: [webmaster33] creating tables causes script to hang
PAYE 5582 Mar 12, 2005, 11:07 AM
Post Re: [PAYE] creating tables causes script to hang
webmaster33 5592 Mar 12, 2005, 11:24 AM