in reply to DBD::mysql "Column count doesn't match value count"
Shouldn't this:
INSERT into monica.event (msg, source, situation, version, date, hostn +ame, last_uid, sub_origin, component, guid, severity, adapter_host) v +alues (????????????)
actually be:
Replace the line:INSERT into monica.event (msg, source, situation, version, date, hostn +ame, last_uid, sub_origin, component, guid, severity, adapter_host) v +alues (?,?,?,?,?,?,?,?,?,?,?,?)
withmy $places = join ', ', ('?' x scalar keys %slots);
my $places = join ', ', (('?') x scalar keys %slots);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: DBD::mysql "Column count doesn't match value count"
by Random_Walk (Prior) on Nov 28, 2006 at 18:40 UTC | |
Re^2: DBD::mysql "Column count doesn't match value count"
by bart (Canon) on Nov 29, 2006 at 12:19 UTC |
In Section
Seekers of Perl Wisdom